record_collection 0.4.3 → 0.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ad0a87398763dd50f48c629156cbe9b240302d88
4
- data.tar.gz: 9558462cf22c25a92359feccedb15912b6242f5e
3
+ metadata.gz: ffed31f67a7d2df694b8b0314dc9ae69606d7839
4
+ data.tar.gz: 00d178e4963eeff61b02443841eb0d1624f0a896
5
5
  SHA512:
6
- metadata.gz: dfa06469408f59b6c7d6deec482012b74ba9605c2203bff3e8a34acb7cb14a986534703fa55c72a063baed58f49d7024235b9c563bc85f5ede8e8860cdf3a09a
7
- data.tar.gz: 2cd8fa61290aaa6ddf45a2b9d13169b509fb8520e3e7ff87fa3de5c55b5e1b354068ebf93e9086f4aeb5e000fc5e8f9401b4c9b7aefffe3a39b8cecdda77e0d0
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
- # Find all buttons in the table footer and attach the action given their action data attribute
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
@@ -1,3 +1,3 @@
1
1
  module RecordCollection
2
- VERSION = "0.4.3"
2
+ VERSION = "0.4.4"
3
3
  end
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.3
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.2
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