app/assets/javascripts/effective_datatables/reorder.js.coffee in effective_datatables-4.3.22 vs app/assets/javascripts/effective_datatables/reorder.js.coffee in effective_datatables-4.3.23

- old
+ new

@@ -6,10 +6,10 @@ oldNode = $("<div>#{change.oldData}</div>").find('input[data-reorder-resource]') newNode = $("<div>#{change.newData}</div>").find('input[data-reorder-resource]') return unless oldNode? && newNode? url = @context[0].ajax.url.replace('.json', '/reorder.json') - data = {'reorder[id]': oldNode.data('reorder-resource'), 'reorder[old]': oldNode.val(), 'reorder[new]': newNode.val(), _datatable_cookie: $table.data('cookie') } + data = {'reorder[id]': oldNode.data('reorder-resource'), 'reorder[old]': oldNode.val(), 'reorder[new]': newNode.val(), _datatable_id: $table.attr('id'), _datatable_cookie: $table.data('cookie') } @context[0].rowreorder.c.enable = false $.ajax( method: 'post',