simple_form_extension 1.3.24 → 1.4.0
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a367630360bbe1d54b2f59d2a4ccf38b949a35b
|
4
|
+
data.tar.gz: 769fbc0efd2becb79c147e3558019bc76a9d7f59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30af5740b63676c7cf594918515d3e2253888c83b46abec1c6da9de0988c1f929e7dcf4ee6996b03ca7b5d27d98b5935879342c167ba49cf1dad244e220c6a40
|
7
|
+
data.tar.gz: cc0ad96f2cd6025a9a3c90f4ce1fdffdc57c1cd1910abd8d5b43a6a4fc048a2f00767ba2885ebef02f0f86be0074da67d37ad335679ded32db827f6a09cdb6db
|
@@ -14,7 +14,7 @@ $.simpleForm =
|
|
14
14
|
# Bind a callback to run when a DOM or sub-DOM is ready to be initialized
|
15
15
|
# Allows abstracting the following cases :
|
16
16
|
# - Document is ready with $(document).ready()
|
17
|
-
# - Document is ready with Turbolinks
|
17
|
+
# - Document is ready with Turbolinks 'page:change' or 'turbolinks:load'
|
18
18
|
# - A sub-DOM is dynamically added and needs all the plugins to be
|
19
19
|
# initialized, ex: for nested forms
|
20
20
|
#
|
@@ -33,7 +33,9 @@ $.fn.simpleForm = ->
|
|
33
33
|
$(document).ready ->
|
34
34
|
$('body').simpleForm() unless window.Turbolinks && window.Turbolinks.supported
|
35
35
|
|
36
|
-
# Turbolinks document ready binding
|
36
|
+
# Turbolinks document ready binding with compatibility for turbolinks-classic
|
37
|
+
# and rails 5 turbolinks events
|
37
38
|
#
|
38
|
-
$(document).on 'page:change', ->
|
39
|
+
$(document).on 'page:change turbolinks:load', ->
|
40
|
+
console.log 'turbolinks:load'
|
39
41
|
$('body').simpleForm()
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_form_extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Glyph-fr
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07
|
11
|
+
date: 2016-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|