From 7eda02f366bb25d84176f5c0c76edf500faed711 Mon Sep 17 00:00:00 2001 From: SimonGschnell Date: Thu, 7 Mar 2024 11:46:05 +0100 Subject: [PATCH] adds include variable tabulator5JQuery to FHC-Common.php --- application/views/templates/FHC-Common.php | 1 + application/views/templates/FHC-Footer.php | 2 +- public/js/TableWidget.js | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/application/views/templates/FHC-Common.php b/application/views/templates/FHC-Common.php index 072ff1d7f..dd399f354 100644 --- a/application/views/templates/FHC-Common.php +++ b/application/views/templates/FHC-Common.php @@ -23,6 +23,7 @@ $tablesorter2 = isset($tablesorter2) ? $tablesorter2 : false; $tabulator4 = isset($tabulator4) ? $tabulator4 : false; $tabulator5 = isset($tabulator5) ? $tabulator5 : false; + $tabulator5JQuery = isset($tabulator5JQuery) ? $tabulator5JQuery : false; $tinymce3 = isset($tinymce3) ? $tinymce3 : false; $tinymce5 = isset($tinymce5) ? $tinymce5 : false; $vue3 = isset($vue3) ? $vue3 : false; diff --git a/application/views/templates/FHC-Footer.php b/application/views/templates/FHC-Footer.php index 1fca0df2b..c17e49de7 100644 --- a/application/views/templates/FHC-Footer.php +++ b/application/views/templates/FHC-Footer.php @@ -99,7 +99,7 @@ // Tabulator 5 JS if ($tabulator5 === true) generateJSsInclude('vendor/olifolkerd/tabulator5/dist/js/tabulator.min.js'); - + // Tabulator 5 JQuery if ($tabulator5JQuery === true) generateJSsInclude('vendor/olifolkerd/tabulator5/dist/js/jquery_wrapper.js'); // Tinymce 3 JS if ($tinymce3 === true) generateJSsInclude('include/tiny_mce/tiny_mce.js'); diff --git a/public/js/TableWidget.js b/public/js/TableWidget.js index 1d0b36405..e5a510b22 100644 --- a/public/js/TableWidget.js +++ b/public/js/TableWidget.js @@ -562,6 +562,8 @@ var FHC_TableWidget = { // Renders the tabulator tableWidgetDiv.find("#tableWidgetTabulator").tabulator(options); + tableWidgetDiv.find("#tableWidgetTabulator").tabulator("on","tableBuilt",()=>{console.log("table build")}); + } }