lato 0.1.40 → 0.1.41

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 247fabb5391e65cf82f4e01e433e5b0300997f26aeaf4afa1777b2a40954929e
4
- data.tar.gz: ab0bab734ed69139b23d943c7370182b04999b1e7885ee85113c6d087c8a06cd
3
+ metadata.gz: 3c546f12dcaa130c6ba08d7d731b307f0307d994f8e60cd6ca51aa78e4d5b522
4
+ data.tar.gz: 7036a73ffcd0064d28e1e54649396dc9e5a155c691f6e2b3d52475940eb66322
5
5
  SHA512:
6
- metadata.gz: 94557413fa041c0fda74f38d84f881db83d2478e20adffde85d85e25be440e1f236539973b8702a5f5de7b0966df82876441f0645cb9b8819af8103347ae66f2
7
- data.tar.gz: e1468aa0ec0fc21459e2b194556798f45e34e8b83396fc2756a651fb255f87cfaf5f732fe1d7e347003bb6c69a0b307ac3dbf357d9fcc59ccac3ba5164047ee1
6
+ metadata.gz: e311e0ebc391f595aca7bf74cf2937da3e9ae1b6b4409c17a2fd523ff79e519448feca8aab1c1487535e7139089f4a56af66a773389f6572fb4d66af2896ba1f
7
+ data.tar.gz: a5ad63fe639ec4fe4f6fd886502c7b1032d889b9e32e0131ee68888a2cf51bed14455de2ae5c0e0728f072a41e89a9e52804b236f96b6a31c15da11af149753d
@@ -6,6 +6,13 @@ import "bootstrap"
6
6
  import "controllers"
7
7
 
8
8
  // Close sidebar before page change with turbo
9
- document.addEventListener("turbo:before-visit", () => {
9
+ document.addEventListener("turbo:before-visit", (e) => {
10
10
  document.body.classList.remove('aside-open')
11
11
  })
12
+
13
+ // Close all boostrap modals before page change with turbo
14
+ document.addEventListener("turbo:before-visit", (e) => {
15
+ document.querySelectorAll('.modal').forEach((modal) => {
16
+ modal.classList.remove('show')
17
+ })
18
+ })
data/lib/lato/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lato
2
- VERSION = "0.1.40"
2
+ VERSION = "0.1.41"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lato
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.40
4
+ version: 0.1.41
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregorio Galante
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-06 00:00:00.000000000 Z
11
+ date: 2023-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails