active_scaffold_sortable 3.2.3 → 3.2.4

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
- SHA512:
3
- data.tar.gz: 6e1251524851826549565f262449ee7b3718af72688e8bcbce7d06fb7083933c1322e4d1b3fc08f31c30218e7cbcc42317af144451161bb994bd1b12f4fe90e4
4
- metadata.gz: 48e53cb76841e3d98f970bbda0970f698f1242caa044379f2db3fd9a7bd8934f926c0c780e0fb996aa5cb64047b3fc7f36bf9d3e150afb591d5169997099565d
5
2
  SHA1:
6
- data.tar.gz: cfc8d9f425a6b3554d4c4d9e4d315449a082ec53
7
- metadata.gz: 41663d61d6ca590cc0085e1554fed3ea743f8ec8
3
+ metadata.gz: 666d92caced88e95e8c98bf4ed2cd815d31425b5
4
+ data.tar.gz: a4e865644f6d648ad1efb607aa01ac6b826b0473
5
+ SHA512:
6
+ metadata.gz: 03c17a7e0d497d11633ea691723d0d6436e44046ae1d0a6909ebbf58e9ac9bb882bec6f2d4444b35fc4f992425ab7bf7357f7ddd16ef5e951a231652bf66ad54
7
+ data.tar.gz: 0167d621ad24ef17534739a6f2ffe94ffddd79554903757eea345b58dcb195fffc3ead9be29a82adf2e0371ae60b1af986324a506cfe949164668b16e23673ab
@@ -44,6 +44,10 @@ jQuery(document).ready(function($) {
44
44
  var sortable = $('.sortable-container', action_link.adapter);
45
45
  if (sortable.length) $.each(sortable, function(i, s) { ActiveScaffold.sortable($(s)); });
46
46
  });
47
+ $(document).on('as:element_updated', function(e) {
48
+ var sortable = $('.sortable-container', e.target);
49
+ if (sortable.length) $.each(sortable, function(i, s) { ActiveScaffold.sortable($(s)); });
50
+ });
47
51
  var sortable = $('.sortable-container');
48
52
  if (sortable.length) ActiveScaffold.sortable(sortable);
49
53
  });
@@ -2,7 +2,7 @@ module ActiveScaffoldSortable
2
2
  module Version
3
3
  MAJOR = 3
4
4
  MINOR = 2
5
- PATCH = 3
5
+ PATCH = 4
6
6
 
7
7
  STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_scaffold_sortable
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.3
4
+ version: 3.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergio Cambra
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2013-12-02 00:00:00 Z
13
+ date: 2014-04-11 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  version_requirements: &id001 !ruby/object:Gem::Requirement