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 += '