mirror of
https://github.com/Combodo/iTop.git
synced 2026-07-12 01:36:39 +02:00
Objects list: Rename DataTables JS plugin from iTopDataTableExternalKeyGrouping to iTopDataTableTreeGrouping
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
/**
|
||||
* External key grouping (tree display) for iTop DataTables.
|
||||
* Tree grouping for iTop DataTables.
|
||||
*
|
||||
* Activated when a DataTable has the 'sTreeGroupingAttr' option set (via DashletObjectList).
|
||||
* Activated when a DataTable has the 'sTreeGroupingAttr' option set.
|
||||
* Transforms a flat list of objects into an expandable/collapsible tree grouped by parent ID.
|
||||
*
|
||||
* @copyright Copyright (C) 2010-2024 Combodo SAS
|
||||
* @license http://opensource.org/licenses/AGPL-3.0
|
||||
*/
|
||||
var iTopDataTableExternalKeyGrouping = (function ($) {
|
||||
var iTopDataTableTreeGrouping = (function ($) {
|
||||
'use strict';
|
||||
|
||||
// Inject CSS once
|
||||
|
||||
@@ -98,7 +98,7 @@ var oTable{{ sListIDForVarSuffix }} = $('#{{ oUIBlock.GetId() }}').DataTable({
|
||||
this.attr('data-status', 'loaded');
|
||||
this.closest('.dataTables_scroll').find('.dataTables_scrollHead .ibo-datatable').attr('data-status', 'loaded');
|
||||
|
||||
iTopDataTableExternalKeyGrouping.setup('{{ oUIBlock.GetId() }}', this.api(), {
|
||||
iTopDataTableTreeGrouping.setup('{{ oUIBlock.GetId() }}', this.api(), {
|
||||
parentKey: '{{ oUIBlock.GetOption("sTreeGroupingParentKey") }}',
|
||||
ajaxUrl: '{{ oUIBlock.GetAjaxUrl() }}',
|
||||
ajaxData: {{ oUIBlock.GetJsonAjaxData() | raw }},
|
||||
|
||||
Reference in New Issue
Block a user