mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°3685 - Front-end performances: Include dataTables lib. only when necessary
This commit is contained in:
@@ -34,6 +34,8 @@ class DataTable extends UIContentBlock
|
||||
'node_modules/datatables.net-responsive/js/dataTables.responsive.js',
|
||||
'node_modules/datatables.net-scroller/js/dataTables.scroller.js',
|
||||
'node_modules/datatables.net-select/js/dataTables.select.js',
|
||||
'js/field_sorter.js',
|
||||
'js/table-selectable-lines.js',
|
||||
'js/dataTables.main.js',
|
||||
'js/dataTables.settings.js',
|
||||
'js/dataTables.pipeline.js',
|
||||
|
||||
@@ -29,6 +29,7 @@ class StaticTable extends UIContentBlock
|
||||
'node_modules/datatables.net-responsive/js/dataTables.responsive.js',
|
||||
'node_modules/datatables.net-scroller/js/dataTables.scroller.js',
|
||||
'node_modules/datatables.net-select/js/dataTables.select.js',
|
||||
'js/field_sorter.js',
|
||||
'js/dataTables.main.js',
|
||||
'js/dataTables.settings.js',
|
||||
'js/dataTables.pipeline.js',
|
||||
|
||||
@@ -40,9 +40,17 @@ class NiceWebPage extends WebPage
|
||||
'js/search/search_form_criteria_date_abstract.js',
|
||||
'js/search/search_form_criteria_date.js',
|
||||
'js/search/search_form_criteria_date_time.js',
|
||||
// - DataTable UIBlock
|
||||
'js/field_sorter.js',
|
||||
'js/table-selectable-lines.js',
|
||||
|
||||
// Deprecated files
|
||||
'js/hovertip.js',
|
||||
/** @deprecated since 3.0.0 N°2737 - Migrate table to DataTables plugin to be iso with the end-users portal */
|
||||
'js/datatable.js',
|
||||
'js/jquery.tablesorter.js',
|
||||
'js/jquery.tablesorter.pager.js',
|
||||
'js/jquery.tablehover.js',
|
||||
];
|
||||
|
||||
const DEFAULT_PAGE_TEMPLATE_REL_PATH = 'pages/backoffice/nicewebpage/layout';
|
||||
@@ -138,15 +146,6 @@ EOF
|
||||
$this->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/jquery-ui.custom.min.js');
|
||||
|
||||
$this->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/utils.js');
|
||||
$this->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/table-selectable-lines.js');
|
||||
$this->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/field_sorter.js');
|
||||
//TODO deprecated in 3.0.0
|
||||
$this->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/datatable.js');
|
||||
// table sorting
|
||||
$this->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/jquery.tablesorter.js');
|
||||
$this->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/jquery.tablesorter.pager.js');
|
||||
$this->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/jquery.tablehover.js');
|
||||
//TODO end deprecated in 3.0.0
|
||||
|
||||
$this->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/jquery.positionBy.js');
|
||||
$this->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/jquery.popupmenu.js');
|
||||
|
||||
Reference in New Issue
Block a user