effective_datatables 4.3.22 → 4.3.23

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: 85c4d234a41d794bc05590d5908a0cab2b5b9271
4
- data.tar.gz: 2a39922c804f7455053c7bca291dba9baf8fb5ef
3
+ metadata.gz: e9103e5d57c0218b0e58169b02848afb057fab9a
4
+ data.tar.gz: a88158032fb84eba48715a905cae56c62109aa1e
5
5
  SHA512:
6
- metadata.gz: 59be28e8ab3d8d34c37b2c54601471b4b760dfa64efed01c7d37cb464d8d2861a8c88504e9245c6c1fbb56816b54fccf267051223e6a376fdb6c50e10e9e61dc
7
- data.tar.gz: a2cc1cbcc432e583f3379c0e876b6da967a04f9f64d3f934a9667e70e36f3fd30c4f655adaed6b26341f2e9ad0cae4edabe14438f8e418e90d2bde7596810e2a
6
+ metadata.gz: 3597f751ede4accd994fcb97c2fc92f0b55bf6bc8db23daaaedbe82bf2f281425b238d9b703479b77f5046fc520933aef3c5c58937ba16a323362fad664ed19a
7
+ data.tar.gz: 158ce8b46ab3716c514443596a6fb16d84bb9f72fe4072ca6728360f43735293e7292470199aa8561986a48b4a3bdaf55dbaccbb53c2feeef225839b1fe81336
@@ -8,7 +8,7 @@ reorder = (event, diff, edit) ->
8
8
  return unless oldNode? && newNode?
9
9
 
10
10
  url = @context[0].ajax.url.replace('.json', '/reorder.json')
11
- data = {'reorder[id]': oldNode.data('reorder-resource'), 'reorder[old]': oldNode.val(), 'reorder[new]': newNode.val(), _datatable_cookie: $table.data('cookie') }
11
+ 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') }
12
12
 
13
13
  @context[0].rowreorder.c.enable = false
14
14
 
@@ -25,6 +25,8 @@ module Effective
25
25
  @datatable = EffectiveDatatables.find(params[:id])
26
26
  @datatable.view = view_context
27
27
 
28
+ EffectiveDatatables.authorize!(self, :index, @datatable.collection_class)
29
+
28
30
  @resource = @datatable.collection.find(params[:reorder][:id])
29
31
 
30
32
  EffectiveDatatables.authorize!(self, :update, @resource)
@@ -1,3 +1,3 @@
1
1
  module EffectiveDatatables
2
- VERSION = '4.3.22'.freeze
2
+ VERSION = '4.3.23'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_datatables
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.22
4
+ version: 4.3.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-07 00:00:00.000000000 Z
11
+ date: 2019-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails