effective_datatables 3.0.3 → 3.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ecb3b1a263285ad9acc6a96b65a75aed66f16023
|
|
4
|
+
data.tar.gz: 8bea0658d45b252bf91fedda6fe708d5b5abc8d4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: eabae653bd9cd35abc5b54a9596655d27ee0422cb170b8df40cd2680f8200f2c3a8e7ee866691e61f98ccd00f06d81b100dee0a8eba9d0cc82d4646e33014fed
|
|
7
|
+
data.tar.gz: ad4c8278fa5c7ce2987901d38167966c749036a49e8867a8dcf1a900411adbbec44c1c17f04f2691afad1f997a16d522131c9530fea6c03027834bcf838469b2
|
|
@@ -24,10 +24,10 @@ module EffectiveDatatablesHelper
|
|
|
24
24
|
'columns' => datatable_columns(datatable),
|
|
25
25
|
'cookie' => datatable.cookie_name,
|
|
26
26
|
'display-length' => datatable.display_length,
|
|
27
|
-
'display-order' => [datatable.order_index, datatable.order_direction].to_json(),
|
|
27
|
+
'display-order' => [datatable.order_index, datatable.order_direction].to_json().html_safe,
|
|
28
28
|
'display-records' => datatable.to_json[:recordsFiltered],
|
|
29
29
|
'display-start' => datatable.display_start,
|
|
30
|
-
'input-js-options' => (input_js || {}).to_json,
|
|
30
|
+
'input-js-options' => (input_js || {}).to_json.html_safe,
|
|
31
31
|
'reset' => datatable_reset(datatable),
|
|
32
32
|
'simple' => datatable.simple?.to_s,
|
|
33
33
|
'source' => effective_datatables.datatable_path(datatable, {format: 'json'}),
|
|
@@ -17,15 +17,17 @@ module EffectiveDatatablesPrivateHelper
|
|
|
17
17
|
sortable: (opts[:sort] && !datatable.simple?),
|
|
18
18
|
visible: datatable.state[:visible][name],
|
|
19
19
|
}
|
|
20
|
-
end.to_json
|
|
20
|
+
end.to_json.html_safe
|
|
21
21
|
end
|
|
22
22
|
|
|
23
23
|
def datatable_bulk_actions(datatable)
|
|
24
|
-
|
|
24
|
+
if datatable._bulk_actions.present?
|
|
25
|
+
render(partial: '/effective/datatables/bulk_actions_dropdown', locals: { datatable: datatable }).gsub("'", '"').html_safe
|
|
26
|
+
end
|
|
25
27
|
end
|
|
26
28
|
|
|
27
29
|
def datatable_reset(datatable)
|
|
28
|
-
render(partial: '/effective/datatables/reset', locals: { datatable: datatable })
|
|
30
|
+
render(partial: '/effective/datatables/reset', locals: { datatable: datatable }).gsub("'", '"').html_safe
|
|
29
31
|
end
|
|
30
32
|
|
|
31
33
|
def datatable_search_html(form, name, value, opts)
|
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: 3.0.
|
|
4
|
+
version: 3.0.4
|
|
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: 2017-05-
|
|
11
|
+
date: 2017-05-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|