record_collection 0.4.3 → 0.4.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
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ffed31f67a7d2df694b8b0314dc9ae69606d7839
|
4
|
+
data.tar.gz: 00d178e4963eeff61b02443841eb0d1624f0a896
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8070ced31dfc91c1bbce60dbce564226634f21a33aaac223139fb52d22ab4c2ec5df5473e8e5036c660d15fcae78827afaf5ef62b328f3fa1a547ab9ab742d81
|
7
|
+
data.tar.gz: 7fe040d93fceb173d528f2c3a8e0701404c58417dad7cb8a346917ffbf633e7b221b96511825a0c40339fd15dd16bad864b1eb547a9c8a862eadfe292915b746
|
@@ -32,17 +32,9 @@ class MultiSelect
|
|
32
32
|
record_td = $('<td></td>').addClass('selection').append(record_toggle)
|
33
33
|
table.find('tbody tr').prepend record_td
|
34
34
|
|
35
|
-
@setup_selection_actions()
|
36
|
-
|
37
35
|
toggle_all.click() if table.data('preselected')
|
38
36
|
|
39
|
-
|
40
|
-
setup_selection_actions: ->
|
41
|
-
selector = this
|
42
|
-
@table.find('tfoot button').click ->
|
43
|
-
$.post Routes["actions_#{selector.get('resource')}_path"](),
|
44
|
-
ids: selector.selected_ids().toArray()
|
45
|
-
selection_action: $(this).data('action')
|
37
|
+
return @
|
46
38
|
|
47
39
|
# use set and get as a good reactive pattern
|
48
40
|
# implement the raw version, can become more complex int the future
|
@@ -64,3 +56,4 @@ $.fn.multi_select = ->
|
|
64
56
|
select = new MultiSelect()
|
65
57
|
root.MultiSelect = select
|
66
58
|
select.setup $(el)
|
59
|
+
select
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: record_collection
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benjamin ter Kuile
|
@@ -397,7 +397,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
397
397
|
version: '0'
|
398
398
|
requirements: []
|
399
399
|
rubyforge_project:
|
400
|
-
rubygems_version: 2.4.
|
400
|
+
rubygems_version: 2.4.3
|
401
401
|
signing_key:
|
402
402
|
specification_version: 4
|
403
403
|
summary: Manage collections of records in Ruby on Rails
|