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: 9846d5ea6a3dcfe7101245e6bb39173847dd8b08
4
- data.tar.gz: ea6b4ffb914faa3a74322c75dd6f953d576c9f2d
3
+ metadata.gz: 5a367630360bbe1d54b2f59d2a4ccf38b949a35b
4
+ data.tar.gz: 769fbc0efd2becb79c147e3558019bc76a9d7f59
5
5
  SHA512:
6
- metadata.gz: 0749b441d79c526913b77623ee5dce6382a21b883dd40552033aaa13091b5d6267da292f74d144bf842197c93cbc86cf9ac2b7b4897ab5294fbc37c57c29c7bf
7
- data.tar.gz: 974bdfe2e59f31c5eaccb236debbca8f858fdeb54732b5c0eee3e0e583132c28cb93fadda2ffab1116279991f25a2a30f7c5f7b7f113e0ac1784f8acbf5005b3
6
+ metadata.gz: 30af5740b63676c7cf594918515d3e2253888c83b46abec1c6da9de0988c1f929e7dcf4ee6996b03ca7b5d27d98b5935879342c167ba49cf1dad244e220c6a40
7
+ data.tar.gz: cc0ad96f2cd6025a9a3c90f4ce1fdffdc57c1cd1910abd8d5b43a6a4fc048a2f00767ba2885ebef02f0f86be0074da67d37ad335679ded32db827f6a09cdb6db
@@ -1,3 +1,3 @@
1
1
  module SimpleFormExtension
2
- VERSION = "1.3.24"
2
+ VERSION = "1.4.0"
3
3
  end
@@ -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 $(document).on('page:change')
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.3.24
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-19 00:00:00.000000000 Z
11
+ date: 2016-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails