effective_datatables 4.30.0 → 4.30.2
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: 9ec07c03e5278144171de22592740123dbc4db6999d5a9e39c2d06c665e661f2
|
4
|
+
data.tar.gz: c446501978993cca11e309326b466afb9f14afe8cd41d92243099c26bfb3a0cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 549c5d46a0f4c624ed98d6cc7c986e50f1567a2617c08fc39f81eb76dda49446908d23c5d9ae40bd7e4ab6c56950a369c63f8730b8992be315bc76295c87124c
|
7
|
+
data.tar.gz: 1a1aba3d33d2160a78fb6f93755a352dbb5eb73dcadc5a83363f5b7ce21cc0ddaaa18fa497e472e538b2a9a1afa78c165c794f664b54bae193d4ce2433880bf6
|
@@ -255,6 +255,15 @@ table.dataTable {
|
|
255
255
|
th.col-decimal, td.col-decimal { text-align: right; }
|
256
256
|
th.col-right, td.col-right { text-align: right; }
|
257
257
|
|
258
|
+
th.col-th-left { text-align: left !important; }
|
259
|
+
td.col-td-left { text-align: left !important; }
|
260
|
+
|
261
|
+
th.col-th-center { text-align: center !important; }
|
262
|
+
td.col-td-center { text-align: center !important; }
|
263
|
+
|
264
|
+
th.col-th-right { text-align: right !important; }
|
265
|
+
td.col-td-right { text-align: right !important; }
|
266
|
+
|
258
267
|
td.col-bulk_actions {
|
259
268
|
label {
|
260
269
|
cursor: pointer;
|
@@ -73,11 +73,13 @@ module Effective
|
|
73
73
|
if new_index > old_index
|
74
74
|
@datatable.collection.where("#{attribute} > ? AND #{attribute} <= ?", old_index, new_index).update_all("#{attribute} = #{attribute} - 1")
|
75
75
|
@resource.update_column(attribute, new_index)
|
76
|
+
@resource.touch
|
76
77
|
end
|
77
78
|
|
78
79
|
if old_index > new_index
|
79
80
|
@datatable.collection.where("#{attribute} >= ? AND #{attribute} < ?", new_index, old_index).update_all("#{attribute} = #{attribute} + 1")
|
80
81
|
@resource.update_column(attribute, new_index)
|
82
|
+
@resource.touch
|
81
83
|
end
|
82
84
|
end
|
83
85
|
|
@@ -38,7 +38,7 @@ module EffectiveDatatablesPrivateHelper
|
|
38
38
|
|
39
39
|
length_menu ||= [5, 10, 25, 50, 100, 250, 500]
|
40
40
|
|
41
|
-
[length_menu
|
41
|
+
[length_menu, length_menu.map(&:to_s)]
|
42
42
|
end
|
43
43
|
|
44
44
|
def datatable_new_resource_button(datatable, name, column)
|
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.30.
|
4
|
+
version: 4.30.2
|
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: 2024-
|
11
|
+
date: 2024-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|