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