Bug 12904: Fix occurrences not caught by script
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 6 Feb 2018 13:41:03 +0000 (10:41 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 8 Feb 2018 17:53:24 +0000 (14:53 -0300)
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/includes/intranetstylesheet.inc
koha-tmpl/opac-tmpl/bootstrap/en/includes/doc-head-close.inc
koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc

index 54ead22..ce3c1c4 100644 (file)
@@ -1,4 +1,4 @@
-[% SET intranetstylesheet='staff-global.css' UNLESS intranetstylesheet %]
+[% SET intranetstylesheet='staff-global_' _ KOHA_VERSION _ '.css' UNLESS intranetstylesheet %]
 [% IF (intranetstylesheet.match('^https?:|^\/')) %]
     <link rel="stylesheet" type="text/css" href="[% intranetstylesheet %]" />
 [% ELSE %]
index 0f651c8..838606e 100644 (file)
@@ -14,7 +14,7 @@
     <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/lib/jquery/jquery-ui_[% KOHA_VERSION %].css" />
 [% END %]
 
-[% SET opaclayoutstylesheet='opac.css' UNLESS opaclayoutstylesheet %]
+[% SET opaclayoutstylesheet='opac_' _ KOHA_VERSION _ '.css' UNLESS opaclayoutstylesheet %]
 [% IF (opaclayoutstylesheet.match('^https?:|^\/')) %]
     <link rel="stylesheet" type="text/css" href="[% opaclayoutstylesheet %]" />
 [% ELSE %]
index 70c8ad9..fcc3ee8 100644 (file)
@@ -90,11 +90,11 @@ $.widget.bridge('uitooltip', $.ui.tooltip);
         // Test need for polyfill
         {
             test: window.matchMedia,
-            nope: "[% interface %]/[% theme %]/lib/media.match.min.js"
+            nope: "[% interface %]/[% theme %]/lib/media.match.min_[% KOHA_VERSION %].js"
         },
         // and then load enquire
-        "[% interface %]/[% theme %]/lib/enquire.min.js",
-        "[% interface %]/[% theme %]/js/script.js"
+        "[% interface %]/[% theme %]/lib/enquire.min_[% KOHA_VERSION %].js",
+        "[% interface %]/[% theme %]/js/script_[% KOHA_VERSION %].js"
     ]);
 
     // Fix for datepicker in a modal