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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9103e5d57c0218b0e58169b02848afb057fab9a
|
4
|
+
data.tar.gz: a88158032fb84eba48715a905cae56c62109aa1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)
|
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.
|
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-
|
11
|
+
date: 2019-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|