effective_datatables 1.3.3 → 1.3.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: 0acd4cd2050351cb28f291512e5c406274910f86
4
- data.tar.gz: 1626a6ee151bc7f3bb2199fe4ab3eb5522e0f185
3
+ metadata.gz: 645afb224b6e4c126e123cf1b0fe2279560b76d0
4
+ data.tar.gz: 125289441e6b5d29b684d11135d41b2e16e5bfd2
5
5
  SHA512:
6
- metadata.gz: e09f581a96725bd78dde69829e7525b074d6cd5d46c868d9a3788c7db24da052305f127d6aeefb9d776c03669809a1c07c5e2d38e80bebfba264767140959ed4
7
- data.tar.gz: c4a59dcc40bafe443462b4ab03d0db77d4ef7e2da267b579150d7259e2cac32930ff6a4d4d0c14f460c6217dc6a2f39615fceefe033fd6303df649fbb6466389
6
+ metadata.gz: ee412c7efaa5d9c0dce32002bccae79dcdaa3990ef6cd2573abd37ba2623aa73a1d0158b3083e39190969e516994c08a7c074cf8daf1f2afc54b75e952733263
7
+ data.tar.gz: e389de935982957b7e40b1deb64d59417561c24d905b3f25bbfb06c3362f91b4a86e89fc87dc769594d3a70054399137536892425ffae8c18f6b3d7d2068a82c
@@ -13,7 +13,7 @@ initializeDataTables = ->
13
13
  bProcessing: true
14
14
  bSaveState: true
15
15
  bAutoWidth: false
16
- deferLoading: datatable.data('total-entries')
16
+ deferLoading: [datatable.data('display-records'), datatable.data('total-records')]
17
17
  deferRender: true
18
18
  order: datatable.data('default-order')
19
19
  sAjaxSource: datatable.data('source')
@@ -1,4 +1,4 @@
1
- %table.effective-datatable{:id => "#{datatable.to_param}-table", :class => ('table ' + table_class.to_s), :data => {'effective-datatables-table' => style, 'source' => effective_datatables.datatable_path(datatable, {:format => 'json'}.merge(:attributes => datatable.attributes)), 'filter' => datatable_filter(datatable, filterable), 'non-sortable' => datatable_non_sortable(datatable, sortable), 'non-visible' => datatable_non_visible(datatable), 'widths' => datatable_widths(datatable), 'default-order' => datatable_default_order(datatable), 'default-entries' => datatable.default_entries, 'total-entries' => (datatable.to_json[:iTotalRecords] || false), 'column-classes' => datatable_column_classes(datatable)}}
1
+ %table.effective-datatable{:id => "#{datatable.to_param}-table", :class => ('table ' + table_class.to_s), :data => {'effective-datatables-table' => style, 'source' => effective_datatables.datatable_path(datatable, {:format => 'json'}.merge(:attributes => datatable.attributes)), 'filter' => datatable_filter(datatable, filterable), 'non-sortable' => datatable_non_sortable(datatable, sortable), 'non-visible' => datatable_non_visible(datatable), 'widths' => datatable_widths(datatable), 'default-order' => datatable_default_order(datatable), 'default-entries' => datatable.default_entries, 'display-records' => (datatable.to_json[:iTotalDisplayRecords] || 0), 'total-records' => (datatable.to_json[:iTotalRecords] || 0), 'column-classes' => datatable_column_classes(datatable)}}
2
2
  %thead
3
3
  - max_depth = datatable.table_columns.map { |_, opts| opts[:th][:depth].to_i rescue 0 }.max
4
4
  - [*0..max_depth].each do |depth|
@@ -1,3 +1,3 @@
1
1
  module EffectiveDatatables
2
- VERSION = '1.3.3'.freeze
2
+ VERSION = '1.3.4'.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: 1.3.3
4
+ version: 1.3.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: 2015-03-13 00:00:00.000000000 Z
11
+ date: 2015-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails