Bug 17602: Move spinner location to include file
authorNick Clemens <nick@bywatersolutions.com>
Fri, 21 Sep 2018 19:00:28 +0000 (19:00 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Mon, 1 Oct 2018 13:56:59 +0000 (13:56 +0000)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc
koha-tmpl/opac-tmpl/bootstrap/js/recordedbooks.js

index 12188f8..106e6dd 100644 (file)
@@ -271,6 +271,10 @@ $.widget.bridge('uitooltip', $.ui.tooltip);
 </script>
 [% END %]
 
+[% IF (RecordedBooksEnabled) %]
+  var SPINNER_THROBBER = "[% interface %]/lib/jquery/plugins/themes/classic/throbber.gif";
+[% END %]
+
 [% Asset.js("lib/jquery/plugins/jquery.cookie.min.js") | $raw %]
 <script>
 $(document).ready(function() {
index 24b7082..f3f7e8e 100644 (file)
@@ -89,7 +89,7 @@ KOHA.RecordedBooks = new function() {
         $('<div id="action_'+item.isbn+'" class="actions-menu">')
             .append(actions)
             .appendTo(line);
-        $('<span id="waiting_'+item.isbn+'" style="display:none;"><img class="throbber" src="/opac-tmpl/lib/jquery/plugins/themes/classic/throbber.gif" /></span>').appendTo(line);
+        $('<span id="waiting_'+item.isbn+'" style="display:none;"><img class="throbber" src="' + SPINNER_THROBBER + '" /></span>').appendTo(line);
         $(ul_el).append(line);
     }