effective_datatables 4.12.0 → 4.13.1
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d9144f742099923e8f4029b91ec95f0f72a7448a885d60f1c26512fe84740af3
|
4
|
+
data.tar.gz: 75d5118016122bb723098f3b42c1110b4029b9f8485a16fdb6cf0bc6a13ae538
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50b2cfbf7a71f94dd61e1891bae7688b974c14e072577c408a1ca17e064e8ff1885b76643eb5efaf6df1b9ceaa8fe2a51ce3587c4ec6cfc8478cb6e3fbc73514
|
7
|
+
data.tar.gz: a702fed36f9a6a2fc489c3f8dd9367f6390f7b20b5f1d0a3a6cc7fda8b07957da376d8bf5795037b3e70f072c1fd278563c5fab0e478d827285af2aa5e16bd37
|
@@ -208,3 +208,5 @@ $(document).on 'page:change', -> initializeDataTables()
|
|
208
208
|
$(document).on 'turbolinks:load', -> initializeDataTables()
|
209
209
|
$(document).on 'turbolinks:render', -> initializeDataTables()
|
210
210
|
$(document).on 'turbolinks:before-cache', -> destroyDataTables()
|
211
|
+
$(document).on 'turbo:load', -> initializeDataTables()
|
212
|
+
$(document).on 'turbo:before-cache', -> destroyDataTables()
|
@@ -10,14 +10,14 @@ module Effective
|
|
10
10
|
return @_datatables_ajax_request unless @_datatables_ajax_request.nil?
|
11
11
|
return unless view.respond_to?(:params)
|
12
12
|
|
13
|
-
@_datatables_ajax_request = (view.
|
13
|
+
@_datatables_ajax_request = (view.params.key?(:draw) && view.params.key?(:columns))
|
14
14
|
end
|
15
15
|
|
16
16
|
def datatables_inline_request?
|
17
17
|
return @_datatables_inline_request unless @_datatables_inline_request.nil?
|
18
18
|
return unless view.respond_to?(:params)
|
19
19
|
|
20
|
-
@_datatables_inline_request = (view.
|
20
|
+
@_datatables_inline_request = (view.params[:_datatable_id].to_s.split('-')[0...-1] == to_param.split('-')[0...-1])
|
21
21
|
end
|
22
22
|
|
23
23
|
def params
|
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.
|
4
|
+
version: 4.13.1
|
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: 2022-
|
11
|
+
date: 2022-11-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|