effective_datatables 4.3.2 → 4.3.3
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 +4 -4
- data/app/assets/javascripts/effective_datatables/initialize.js.coffee +3 -0
- data/app/assets/stylesheets/effective_datatables/_overrides.scss +14 -4
- data/app/helpers/effective_datatables_private_helper.rb +1 -1
- data/app/views/effective/datatables/_bulk_actions_column.html.haml +5 -1
- data/lib/effective_datatables/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4fe669a7536deb43686a84bb9fc15f93f76eaf84
|
4
|
+
data.tar.gz: 86359d4b303b234f904c51b9bf0eeb846d924c57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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(
|
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
|
-
|
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}" }
|
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.
|
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-
|
11
|
+
date: 2018-09-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|