From f590ad7734e767e107b62ebec7ccc9172824f229 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Tue, 26 Aug 2014 09:57:49 -0300 Subject: [PATCH] Bug 10212: (qa followup) accordion collapsed by default By default, the accordion shows the first element (Acquisitions) which is empty, and missleading. This patch collapses it by default. The expected behaviour is that if we are rendering because the user saved its changes, the modified accordion should be expanded, so I added a test for the $panel variable. Template comment added for future references about it. Signed-off-by: Tomas Cohen Arazi --- .../prog/en/modules/admin/columns_settings.tt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/columns_settings.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/columns_settings.tt index cd98a9e165..f8127091a5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/columns_settings.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/columns_settings.tt @@ -87,7 +87,12 @@ collapsible: true, autoHeight: false, header: "h3", - active: [% panel %] + [%- IF panel -%] + [%# we were asked to show a specific panel, usually on update %] + active: [%- panel -%] + [%- ELSE -%] + active: false + [%- END -%] }); }); -- 2.39.5