app/assets/javascripts/manage/collection_actions.js.coffee in manage-1.3.34 vs app/assets/javascripts/manage/collection_actions.js.coffee in manage-1.3.35
- old
+ new
@@ -1,30 +1,30 @@
-class CollectionActions
- constructor: (el) ->
- $el = $(el)
-
- $form = $el.closest('form')
-
- $el.on 'click', (e) ->
- e.stopPropagation()
- e.preventDefault()
-
- checkedCheckboxes = $('.rs:checked')
- unless checkedCheckboxes.length
- alert 'Select Items'
- return false
-
- # clear all hidden fields with class .hidden_selected_ids
- $form.find('input[type="hidden"]').remove()
-
- checkedCheckboxes.each ->
- # create a new hidden
- hidden_input = $('<input>').attr({
- type: 'hidden',
- name: 'selected_ids[]',
- value: $(@).val()
- }).appendTo($form)
-
- $form.submit()
-
-
-Handlers.register 'CollectionActions', CollectionActions
+class CollectionActions
+ constructor: (el) ->
+ $el = $(el)
+
+ $form = $el.closest('form')
+
+ $el.on 'click', (e) ->
+ e.stopPropagation()
+ e.preventDefault()
+
+ checkedCheckboxes = $('.rs:checked')
+ unless checkedCheckboxes.length
+ alert 'Select Items'
+ return false
+
+ # clear all hidden fields with class .hidden_selected_ids
+ $form.find('input[type="hidden"]').remove()
+
+ checkedCheckboxes.each ->
+ # create a new hidden
+ hidden_input = $('<input>').attr({
+ type: 'hidden',
+ name: 'selected_ids[]',
+ value: $(@).val()
+ }).appendTo($form)
+
+ $form.submit()
+
+
+Handlers.register 'CollectionActions', CollectionActions