From 6dce6f171d475d49a905d42f7bbab348def71f7c Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 31 Mar 2016 19:48:23 +0000 Subject: [PATCH] Bug 12663: (QA followup) Insert SCOUserCSS/JS 'after' OPACUserCSS/JS rather than 'instead of' i.e. Remove IF/ELSE and use 2 IF Signed-off-by: Katrin Fischer Signed-off-by: Brendan Gallagher --- .../bootstrap/en/includes/doc-head-close.inc | 3 +-- .../bootstrap/en/includes/opac-bottom.inc | 15 +++++++-------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/doc-head-close.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/doc-head-close.inc index 47918a4291..287b0c7113 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/doc-head-close.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/doc-head-close.inc @@ -37,13 +37,12 @@ [% IF ( bidi ) %] [% END %] +[% IF ( OPACUserCSS ) %][% END %] [% IF SCO_login %] [% SET SCOUserCSS = Koha.Preference('SCOUserCSS') %] [% IF SCOUserCSS %] [% END %] -[% ELSE %] - [% IF ( OPACUserCSS ) %][% END %] [% END %] [% PROCESS cssinclude %] diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc index aae5c24a6c..9e7a15c582 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc @@ -266,6 +266,13 @@ $(document).ready(function() { }); [% PROCESS jsinclude %] +[% IF ( OPACUserJS ) %] + +[% END %] [% IF SCO_login %] [% SET SCOUserJS = Koha.Preference('SCOUserJS') %] [% IF ( SCOUserJS ) %] @@ -275,14 +282,6 @@ $(document).ready(function() { //]]> [% END %] -[% ELSE %] - [% IF ( OPACUserJS ) %] - - [% END %] [% END %] -- 2.39.5