kono_utils 0.15.12 → 0.15.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/kono_utils/utilities.coffee +13 -5
- data/lib/kono_utils/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4651457d4dd8be87258a479aa5e7d68d25fc3b3c
|
4
|
+
data.tar.gz: a39ccc7c7f7cc89da2a9c9337eefca983c1e8565
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0bf9dfcd9e9a8ad4ee0a6aa6096370a99b83442c4a7ad89d8ddc4d13ea4e13c08b780ea29e5f1c36067db60b58023e4183f435e565970fe1d122f51d7b29b1f
|
7
|
+
data.tar.gz: 9e137d54549eeab8f1fa9e11eea558aa081eb62ae25b8a80aedb71c4d8839b3faf7cffbbdd5ae33cf07b35a669cfae148eab2db8aae1a58c3876a5eeabfeef59
|
@@ -40,13 +40,21 @@
|
|
40
40
|
|
41
41
|
###
|
42
42
|
@Kn.view_ns = (selector, block) ->
|
43
|
-
|
43
|
+
#funzione da lanciare per il reload della pagina
|
44
|
+
esecutore = _.debounce(->
|
45
|
+
#se abbiamo il selettore allora lancio il blocco
|
44
46
|
if $(selector).length > 0
|
45
47
|
block(selector)
|
46
|
-
|
47
|
-
#
|
48
|
-
|
49
|
-
|
48
|
+
, 10, true)
|
49
|
+
#on ready
|
50
|
+
$ ->
|
51
|
+
esecutore()
|
52
|
+
|
53
|
+
#attacco ascoltatore event haschanged
|
54
|
+
$(window).on 'hashchange', esecutore
|
55
|
+
|
56
|
+
#Attacco evento anche per turbolinks
|
57
|
+
document.addEventListener("turbolinks:load", esecutore)
|
50
58
|
|
51
59
|
|
52
60
|
###
|
data/lib/kono_utils/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kono_utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.15.
|
4
|
+
version: 0.15.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marino
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-06-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionview
|