effective_datatables 4.3.16 → 4.3.17
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: 9a71526dc695be3d7a23fbe5d5d680af3615483c
|
4
|
+
data.tar.gz: 1dccc6fa3ce885dcc71dc38f3816041f92c373e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 303816aba687d20a8dd97654ee23702ab88f2ceb6896aa0afcc4dde96987c7f14ba9f2a3c910218d63af46063d1069186b9e5063ecaf808f6d52bb690c69b82a
|
7
|
+
data.tar.gz: 01278ac4c70973772e38f332feb57e92f2dc882e2e654feae1b585dbc09e4905d2b3aeffde70ab4557da1f9ac9e84f6528585e9e294a080d56032bb35e6447e3
|
@@ -91,7 +91,7 @@ module Effective
|
|
91
91
|
if datatables_ajax_request?
|
92
92
|
load_filter_params!
|
93
93
|
load_ajax_state!
|
94
|
-
elsif cookie.present? && cookie[:params] == params.length
|
94
|
+
elsif cookie.present? && cookie[:params] == params.length && EffectiveDatatables.save_state
|
95
95
|
load_cookie_state!
|
96
96
|
else
|
97
97
|
# Nothing to do for default state
|
@@ -31,6 +31,11 @@ EffectiveDatatables.setup do |config|
|
|
31
31
|
# Log search/sort information to the console
|
32
32
|
config.debug = true
|
33
33
|
|
34
|
-
|
34
|
+
# If a user has previously visited this page and is returning, use the cookie to restore last session
|
35
|
+
# Irregardless of this setting, effective_datatables still uses a cookie to function
|
36
|
+
config.save_state = true
|
37
|
+
|
38
|
+
# String size. Final byte size is about 1.5 times bigger, after rails signs it
|
39
|
+
config.max_cookie_size = 2000
|
35
40
|
|
36
41
|
end
|
data/lib/effective_datatables.rb
CHANGED