diff --git a/public/js/TableWidget.js b/public/js/TableWidget.js index ee43066ce..893a69c5f 100644 --- a/public/js/TableWidget.js +++ b/public/js/TableWidget.js @@ -589,23 +589,10 @@ var FHC_TableWidget = { options.placeholder = _func_placeholder(); // display text when table is empty - // OLD tabulator v4 - // if (typeof options.rowSelectionChanged == 'undefined') - // { - // options.rowSelectionChanged = function(data, rows){ - // _func_rowSelectionChanged(data, rows); - // }; - // } - - // OLD tabulator v4 - // options.columnVisibilityChanged = function(column, visible) { - // _func_columnVisibilityChanged(column, visible); - // }; - // Renders the tabulator tableWidgetDiv.find("#tableWidgetTabulator").tabulator(options); - //! the following callbacks need to be attached after the table has built in tabulator version 5+ + //! callbacks that need to be attached after the table has built in tabulator version 5+ tableWidgetDiv.find("#tableWidgetTabulator").tabulator("on","rowSelectionChanged",_func_rowSelectionChanged); tableWidgetDiv.find("#tableWidgetTabulator").tabulator("on","columnVisibilityChanged",_func_columnVisibilityChanged); @@ -821,28 +808,33 @@ function _renderTabulatorHeaderHTML(tableWidgetDiv){ var tableUniqueId = tableWidgetDiv.attr('tableUniqueId'); var tabulatorHeaderHTML = ''; - tabulatorHeaderHTML += ''; - tabulatorHeaderHTML += '


'; + tabulatorHeaderHTML += + ` +


`; return tabulatorHeaderHTML; } @@ -856,41 +848,39 @@ function _renderTabulatorHeaderCollapseHTML(tableWidgetDiv,arrayTabulatorColumns // CollapseHTML 'Settings' if(_bootstrapVersion==3){ - tabulatorHeaderCollapseHTML += '
'; - tabulatorHeaderCollapseHTML += '
'; - tabulatorHeaderCollapseHTML += `
`; - tabulatorHeaderCollapseHTML += `
`; - tabulatorHeaderCollapseHTML += `'; // end panel-heading - tabulatorHeaderCollapseHTML += '
'; - tabulatorHeaderCollapseHTML += '
'; - tabulatorHeaderCollapseHTML += '
'; + tabulatorHeaderCollapseHTML += ` +
+
+
+
+ +
+
+
` }else{ - tabulatorHeaderCollapseHTML += '
'; - tabulatorHeaderCollapseHTML += '
'; - tabulatorHeaderCollapseHTML += `
`; - tabulatorHeaderCollapseHTML += `
`; - tabulatorHeaderCollapseHTML += `'; - tabulatorHeaderCollapseHTML += '
'; - tabulatorHeaderCollapseHTML += '
'; - tabulatorHeaderCollapseHTML += '
'; + tabulatorHeaderCollapseHTML += + `
+
+
+
+ +
+
+
`; } // Create column picker (Spalten einstellen) tableWidgetDiv.find('#tableWidgetTabulator').tabulator('getColumns').forEach(function(column) @@ -906,13 +896,13 @@ function _renderTabulatorHeaderCollapseHTML(tableWidgetDiv,arrayTabulatorColumns { if ($.inArray(field, tableWidgetBlacklistArray_columnUnselectable) < 0) { - tabulatorHeaderCollapseHTML += `'; + tabulatorHeaderCollapseHTML += ``; } } // Else provide all tabulator fields as pickable columns else { - tabulatorHeaderCollapseHTML += `'; + tabulatorHeaderCollapseHTML += ``; } }); @@ -921,7 +911,6 @@ function _renderTabulatorHeaderCollapseHTML(tableWidgetDiv,arrayTabulatorColumns tabulatorHeaderCollapseHTML += '
'; // end panel-body / accordion-body tabulatorHeaderCollapseHTML += '
'; // end panel-collapse / accordion-collapse tabulatorHeaderCollapseHTML += '
'; // end panel / accordion-item - tabulatorHeaderCollapseHTML += '
'; // end panel-group / accordion tabulatorHeaderCollapseHTML += '
'; // end col tabulatorHeaderCollapseHTML += '
'; // end row @@ -939,26 +928,21 @@ function _renderTabulatorFooterHTML(tableWidgetFooterOptions){ // If property selectButtons is true, render 'Alle auswaehlen / Alle abwaehlen' buttons if (typeof tableWidgetFooterOptions.selectButtons != 'undefined' && tableWidgetFooterOptions.selectButtons == true) { - - tabulatorFooterHTML += ''; - tabulatorFooterHTML += '

'; + tabulatorFooterHTML += + ` +

`; } return tabulatorFooterHTML;