@osimatic/helpers-js 1.1.59 → 1.1.61

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.
@@ -1,7 +1,7 @@
1
1
 
2
2
  class MultipleActionInTable {
3
3
  // init checkbox
4
- static init(table) {
4
+ static init(table, cellCssClass='select') {
5
5
  if (!table.hasClass('table-action_multiple')) {
6
6
  return;
7
7
  }
@@ -18,7 +18,7 @@ class MultipleActionInTable {
18
18
  }
19
19
 
20
20
  if (table.find('thead tr th[data-key="select"]').length === 0) {
21
- table.find('thead tr').prepend($('<th class="select no-sort" data-key="select"></th>'));
21
+ table.find('thead tr').prepend($('<th class="'+cellCssClass+'" data-key="select"></th>'));
22
22
  }
23
23
  table.find('tbody tr:not(.no_items)').each(function(idx, tr) {
24
24
  if ($(tr).find('td.select').length === 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osimatic/helpers-js",
3
- "version": "1.1.59",
3
+ "version": "1.1.61",
4
4
  "main": "main.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/sortable_list.js CHANGED
@@ -33,4 +33,6 @@ class SortableList {
33
33
  sortableList.on('dragover', initSortableList);
34
34
  sortableList.on('dragenter', e => e.preventDefault());
35
35
  }
36
- }
36
+ }
37
+
38
+ module.exports = { SortableList };