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: 94091a70a1042491590e40c2d5b2200cde3426908ca59855081907b98658dd79
4
- data.tar.gz: 7d0d0bbd5e06c3ae7b3bc40bcf753b2650819ac781b3e259e071153cc3807970
3
+ metadata.gz: ea85e999c71b7f5e5e27cf07568fe0879a8f5197abc673e5f9e94bf220b92348
4
+ data.tar.gz: 02e7210ab38da783ad536ed169bc5b3e6e522c075977457346b2b19124675f6c
5
5
  SHA512:
6
- metadata.gz: 19661883fbe1073ac114658bde5b306852260c68b76747ed1481747631b2b45653324412d5cd6709ef4acbc846d16d3005d112e5146ed725f79c4eaeaf949349
7
- data.tar.gz: 3104d75439d664981d30cb89ce4d466bf778cc962e737c4a4e51593d5161bcf4d0929fd25161569a6726bce95e88497d76da9aea312a6c91d57a2574a07a44ed
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)
@@ -1,3 +1,3 @@
1
1
  module EffectiveDatatables
2
- VERSION = '4.7.14'.freeze
2
+ VERSION = '4.7.15'.freeze
3
3
  end
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.14
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-12 00:00:00.000000000 Z
11
+ date: 2019-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails