effective_datatables 4.7.14 → 4.7.15
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: ea85e999c71b7f5e5e27cf07568fe0879a8f5197abc673e5f9e94bf220b92348
|
4
|
+
data.tar.gz: 02e7210ab38da783ad536ed169bc5b3e6e522c075977457346b2b19124675f6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85010c986fede2437ccdedc294a7127a9335ed046abf1e21f1af5d62e61dc4e6c06729306b7068121b94591ac441cf0f41d4b90cf3401f07438e0d6b1f999b5b
|
7
|
+
data.tar.gz: 0ee85c1d3e15e2c13c92d9b65488cb803b1b9ca678b085da00a86a0e997bc61b9b5cd6b8a41a5fc0c08397ab7906a5113cabc4247f416063dd32046bd1b908da
|
@@ -20,7 +20,7 @@ renderCharts = ->
|
|
20
20
|
$chart = $(this)
|
21
21
|
|
22
22
|
data = $chart.data('data') || []
|
23
|
-
type = $chart.data('type') || 'BarChart'
|
23
|
+
type = $chart.data('as') || $chart.data('type') || 'BarChart'
|
24
24
|
options = $chart.data('options') || {}
|
25
25
|
|
26
26
|
chart = new google.visualization[type](document.getElementById($chart.attr('id')))
|
@@ -26,7 +26,7 @@ module EffectiveDatatablesPrivateHelper
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def datatable_display_order(datatable)
|
29
|
-
(datatable.sortable? ? [datatable.order_index, datatable.order_direction] : false).to_json.html_safe
|
29
|
+
((datatable.sortable? && datatable.order_index) ? [datatable.order_index, datatable.order_direction] : false).to_json.html_safe
|
30
30
|
end
|
31
31
|
|
32
32
|
def datatable_reset(datatable)
|
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.7.
|
4
|
+
version: 4.7.15
|
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-09-
|
11
|
+
date: 2019-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|