effective_datatables 4.3.2 → 4.3.3

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: bce1cbc5306668fcececce76aec875bda8b76f6f
4
- data.tar.gz: 81cccd9b962ddcd3d709d33190c54ba76e836a17
3
+ metadata.gz: 4fe669a7536deb43686a84bb9fc15f93f76eaf84
4
+ data.tar.gz: 86359d4b303b234f904c51b9bf0eeb846d924c57
5
5
  SHA512:
6
- metadata.gz: 811e931df4538a941a94abf365014fae0efcd0e40e5a614b9e505ababe7dd8c1c175b8a15d71811dcc76f22d499baf3586ec3ca33b0d8ff384ebd8743eedec0b
7
- data.tar.gz: e398e589472f0d5e8c4aa83a73e65018fbdcdad057c36a40eb56c8b54e0d72f61359b3ac51ffd440fd99fde7045d26e4ba695e16c501409eb51bf36144afdbb0
6
+ metadata.gz: f76787e95bab3aa54d510e9dbb2d69215ec74bc9ef061ecc7eb692fecd98298af9053d3ec5196d39b537aca0f67713833418536563c97e67a4191bed0eca64d9
7
+ data.tar.gz: 297ccbf127f6e1d4871c13294f67bef61ea2ddddeeafa89244d208b7b016c7517106b2999cca213361630de3c2185e5b7dab0c71678e4e03bb995c121840e0e0
@@ -163,6 +163,9 @@ initializeDataTables = ->
163
163
  # Let's actually initialize the table now
164
164
  table = datatable.dataTable(jQuery.extend(init_options, options))
165
165
 
166
+ # Fix a tabindex issue
167
+ table.children('tbody').children('tr').children('td[tabindex]').removeAttr('tabindex')
168
+
166
169
  # Apply EffectiveFormInputs to the Show x per page dropdown
167
170
  try table.closest('.dataTables_wrapper').find('.dataTables_length select').removeAttr('name').select2(minimumResultsForSearch: 100)
168
171
 
@@ -107,6 +107,13 @@ table.dataTable > thead {
107
107
 
108
108
  input { max-height: 38px; }
109
109
  }
110
+
111
+ &.col-bulk_actions {
112
+ label {
113
+ cursor: pointer;
114
+ }
115
+ }
116
+
110
117
  }
111
118
  }
112
119
 
@@ -173,6 +180,13 @@ table.dataTable {
173
180
  td.col-decimal { text-align: right; }
174
181
  td.col-right { text-align: right; }
175
182
 
183
+ td.col-bulk_actions {
184
+ label {
185
+ cursor: pointer;
186
+ vertical-align: top;
187
+ }
188
+ }
189
+
176
190
  tfoot {
177
191
  .col-price { text-align: right; }
178
192
  .col-decimal { text-align: right; }
@@ -184,10 +198,6 @@ table.dataTable {
184
198
  text-align: right;
185
199
  }
186
200
 
187
- td.col-bulk_actions {
188
- input[type='checkbox'] { margin-left: 1px; margin-right: 1px; }
189
- }
190
-
191
201
  td.col-resource_item { word-break: keep-all; }
192
202
 
193
203
  td {
@@ -70,7 +70,7 @@ module EffectiveDatatablesPrivateHelper
70
70
  form.select name, collection, options
71
71
  when :bulk_actions
72
72
  options[:data]['role'] = 'bulk-actions'
73
- form.check_box name, options.merge(custom: false)
73
+ form.check_box name, options.merge(label: ' ')
74
74
  end
75
75
  end
76
76
 
@@ -1,2 +1,6 @@
1
1
  - id = (resource.try(:to_param) || resource.try(:id) || resource.object_id)
2
- = check_box_tag 'bulk_actions_resources[]', id, false, autocomplete: 'off', id: "datatable_bulk_actions_resource_#{id}", data: { role: 'bulk-action' }
2
+
3
+ .form-group.custom-control.custom-checkbox
4
+ %input{value: 0, type: 'hidden'}
5
+ %input.custom-control-input{name: 'bulk_actions_resources[]', id: "datatable_bulk_actions_resource_#{id}", value: id, type: 'checkbox', autocomplete: 'off', 'data-role': 'bulk-action' }
6
+ %label.custom-control-label{for: "datatable_bulk_actions_resource_#{id}" }
@@ -1,3 +1,3 @@
1
1
  module EffectiveDatatables
2
- VERSION = '4.3.2'.freeze
2
+ VERSION = '4.3.3'.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.3.2
4
+ version: 4.3.3
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: 2018-09-18 00:00:00.000000000 Z
11
+ date: 2018-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails