From 58d1a1d311e8e94c4a4973eef8f3d465595a2071 Mon Sep 17 00:00:00 2001 From: Pierre Goiffon Date: Wed, 7 Apr 2021 17:14:44 +0200 Subject: [PATCH] :truck: collapsibleSection JQuery widget renamed to collapsible_section to match other widget naming convention --- js/components/collapsible-section.js | 2 +- .../base/components/collapsible-section/layout.js.twig | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/js/components/collapsible-section.js b/js/components/collapsible-section.js index 55aa6d905..f1b23ef82 100644 --- a/js/components/collapsible-section.js +++ b/js/components/collapsible-section.js @@ -20,7 +20,7 @@ $(function () { // the widget definition, where 'itop' is the namespace, // 'breadcrumbs' the widget name - $.widget('itop.collapsibleSection', + $.widget('itop.collapsible_section', { // default options options: diff --git a/templates/base/components/collapsible-section/layout.js.twig b/templates/base/components/collapsible-section/layout.js.twig index ee297e0db..306b3975e 100644 --- a/templates/base/components/collapsible-section/layout.js.twig +++ b/templates/base/components/collapsible-section/layout.js.twig @@ -1,4 +1,4 @@ -$('#{{ oUIBlock.GetId() }}').collapsibleSection({ - bOpenedByDefault: {{ oUIBlock.IsOpenedByDefault()|var_export }} - {% if oUIBlock.IsSaveCollapsibleStateEnabled() %}, collapsibleStateStorageKey: '{{ oUIBlock.GetSessionCollapsibleStateStorageKey() }}'{% endif %} +$('#{{ oUIBlock.GetId() }}').collapsible_section({ + bOpenedByDefault: {{ oUIBlock.IsOpenedByDefault()|var_export }} + {% if oUIBlock.IsSaveCollapsibleStateEnabled() %}, collapsibleStateStorageKey: '{{ oUIBlock.GetSessionCollapsibleStateStorageKey() }}'{% endif %} }); \ No newline at end of file