data_tables 0.1.10 → 0.1.11

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.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- data_tables (0.1.9)
4
+ data_tables (0.1.11)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/data_tables.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'data_tables'
5
- s.version = '0.1.10'
5
+ s.version = '0.1.11'
6
6
  s.date = Time.now.strftime("%Y-%m-%d")
7
7
  s.summary = "Rails friendly interface into DataTables"
8
8
  s.description = "DataTables for Rails"
@@ -13,12 +13,7 @@ module DataTablesHelper
13
13
  options[:bDeferRender] = true
14
14
  options[:bScrollInfinite] = true
15
15
  options[:iDisplayLength] = 100
16
- options[:oColVis] ||= {}
17
16
  options[:bFilter] = true
18
- options[:oColVis][:aiExclude] ||= []
19
- unless options[:oColVis][:aiExclude].include?(0)
20
- options[:oColVis][:aiExclude].unshift(0)
21
- end
22
17
 
23
18
  options[:bFilter] = opts[:search] unless opts[:search].nil?
24
19
 
@@ -46,9 +41,9 @@ module DataTablesHelper
46
41
  options[:fnDrawCallback] = "function() {
47
42
  change_scrollY();
48
43
  }"
49
-
44
+
50
45
  sdom = options[:bFilter] ? '<"#datatables_search_hint">lfrtip' : 'lrtip'
51
- sdom = "C<\"clear\">" + sdom if options[:oColVis]
46
+ sdom = "C<\"clear\">" + sdom
52
47
  sdom = 'T' + sdom if options[:oTableTools]
53
48
  options[:sDom] ||= sdom
54
49
 
@@ -109,7 +104,7 @@ $(document).ready(function() {
109
104
  $('.dataTables_scrollBody').css('height', h+20);
110
105
  }
111
106
  }
112
-
107
+
113
108
  function resize_column_width() {
114
109
  $('.dataTables_scrollHeadInner').width('100%');
115
110
  $('.dataTable').width('100%');
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: data_tables
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.10
5
+ version: 0.1.11
6
6
  platform: ruby
7
7
  authors:
8
8
  - Duane Compton
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2013-07-31 00:00:00.000000000 Z
16
+ date: 2013-08-08 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  type: :development