effective_datatables 2.2.4 → 2.2.5

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
  SHA1:
3
- metadata.gz: 0a1f1f2a6e87aaf8bf7f99ba7cd7d44e4e6caac9
4
- data.tar.gz: 6841c6589deca99298224940312ab6dfe0c4a91d
3
+ metadata.gz: 29d708cc6cd71ab90dc58e84f0e688bfb4cb8dc7
4
+ data.tar.gz: b825b5d8e67b4eb321e96fe70f795163ab003f60
5
5
  SHA512:
6
- metadata.gz: 27b16423b467f54c659d117251a8808208f0ec0524a419f9d5896cfaa1b976cbe22e480731e1f86129d09adf507212ce58c407a9f1bdcde688e7adfb83bbdb26
7
- data.tar.gz: c05df8edff215a2a211c19a0b008294c553c324f77e1427d97e2d3585e1a9d68f35d9993621812838aff423aed33b1fff7c3cabfa5cccef34ea45b5a73e847f6
6
+ metadata.gz: d031003fe9762338e1160bfc7190c87e3b83e7edb6e7679e00070c2125b4c7f3a53decdb4972b3da8e9851ad673ec7a320f5d2f9dde0d9d550c55aa186b3388d
7
+ data.tar.gz: db6da2d5eb3af6ea3fa8ae8af4d3e951c3c8449cce2b70eb627c40e180de5630166b5b3a27fd3404b36356e4f907e2374acccf0e11a7a6c762697553180d1a3c
@@ -22,28 +22,28 @@ initializeDataTables = ->
22
22
  extend: 'copy',
23
23
  exportOptions:
24
24
  format:
25
- header: (str) -> str.substring(0, str.indexOf('<'))
25
+ header: (str) -> $("<div>#{str}</div>").children('.filter-label').first().text()
26
26
  columns: ':visible:not(.col-actions)'
27
27
  },
28
28
  {
29
29
  extend: 'csv',
30
30
  exportOptions:
31
31
  format:
32
- header: (str) -> str.substring(0, str.indexOf('<'))
32
+ header: (str) -> $("<div>#{str}</div>").children('.filter-label').first().text()
33
33
  columns: ':visible:not(.col-actions)'
34
34
  },
35
35
  {
36
36
  extend: 'excel',
37
37
  exportOptions:
38
38
  format:
39
- header: (str) -> str.substring(0, str.indexOf('<'))
39
+ header: (str) -> $("<div>#{str}</div>").children('.filter-label').first().text()
40
40
  columns: ':visible:not(.col-actions)'
41
41
  },
42
42
  {
43
43
  extend: 'print',
44
44
  exportOptions:
45
45
  format:
46
- header: (str) -> str.substring(0, str.indexOf('<'))
46
+ header: (str) -> $("<div>#{str}</div>").children('.filter-label').first().text()
47
47
  columns: ':visible:not(.col-actions)'
48
48
  },
49
49
  ]
@@ -28,6 +28,7 @@ table.dataTable thead > tr > th.sorting {
28
28
 
29
29
  table.dataTable thead th {
30
30
  text-align: left;
31
+ vertical-align: top;
31
32
  border-bottom: none;
32
33
  white-space: nowrap;
33
34
  padding: 6px;
@@ -24,7 +24,7 @@ module EffectiveDatatablesHelper
24
24
  datatable.table_columns.map do |name, options|
25
25
  {
26
26
  name: options[:name],
27
- title: options[:label],
27
+ title: content_tag(:span, options[:label], class: 'filter-label'),
28
28
  className: options[:class],
29
29
  width: options[:width],
30
30
  responsivePriority: (options[:responsivePriority] || 10000), # 10,000 is datatables default
@@ -1,3 +1,3 @@
1
1
  module EffectiveDatatables
2
- VERSION = '2.2.4'.freeze
2
+ VERSION = '2.2.5'.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: 2.2.4
4
+ version: 2.2.5
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-12-15 00:00:00.000000000 Z
11
+ date: 2015-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails