diff --git a/lib/functions.js b/lib/functions.js index 80f34ad78..e83fa85f5 100644 --- a/lib/functions.js +++ b/lib/functions.js @@ -506,8 +506,7 @@ function launch_modal(title, href, init_modal, id) { } } -// Datatable -function start_datatables() { +function start_local_datatables(){ $('.datatables').each(function () { if (!$.fn.DataTable.isDataTable($(this))) { $(this).DataTable({ @@ -524,6 +523,11 @@ function start_datatables() { }); } }); +} + +// Datatable +function start_datatables() { + start_local_datatables(); $('.main-records').each(function () { var $this = $(this); diff --git a/plugins/importFE/edit.php b/plugins/importFE/edit.php index 47f1eef96..c28e82597 100644 --- a/plugins/importFE/edit.php +++ b/plugins/importFE/edit.php @@ -100,7 +100,14 @@ echo '
'.tr('Per vedere le fatture da importare utilizza il pulsante _BUTTON_', [ + '_BUTTON_' => '"'.tr('Ricerca fatture di acquisto').'"', + ]).'.
'; +} else { include $structure->filepath('list.php'); +} echo ' diff --git a/plugins/importFE/list.php b/plugins/importFE/list.php index 15e63d270..c5c400367 100644 --- a/plugins/importFE/list.php +++ b/plugins/importFE/list.php @@ -9,7 +9,7 @@ $directory = Plugins\ImportFE\FatturaElettronica::getImportDirectory(); if (!empty($list)) { echo ' -'.tr('Nome').' | @@ -99,4 +99,6 @@ function delete_fe(button, file) { } }); } + +start_local_datatables(); ';
---|