From 17b05bce56acd867ce5498d7ac129bd10e0c29eb 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 --- koha-tmpl/intranet-tmpl/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 cd98a9e..a9ea150 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 -%] }); }); -- 1.9.1