[% INCLUDE 'opac-bottom.inc' %]
[% BLOCK jsinclude %]
-<script type="text/javascript" src="[% interface %]/[% theme %]/js/recordedbooks.js"></script>
-<script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.rating.js"></script>
+<script type="text/javascript" src="[% interface %]/[% theme %]/js/recordedbooks_[% KOHA_VERSION %].js"></script>
+<script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.rating_[% KOHA_VERSION %].js"></script>
<script type="text/javascript">
var querystring = "[% q |replace( "'", "\'" ) |replace( '\n', '\\n' ) |replace( '\r', '\\r' ) |html %]";
var results_per_page = [% OPACnumSearchResults || 20 %];
</script>
[% END %]
[% IF RecordedBooksCirculation %]
- <script type="text/javascript" src="[% interface %]//[% theme %]/js/recordedbooks.js"></script>
+ <script type="text/javascript" src="[% interface %]//[% theme %]/js/recordedbooks_[% KOHA_VERSION %].js"></script>
<script type="text/JavaScript">
$(document).ready(function() {
[% IF ( recordedbooks_error ) %]
$('<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);
$(ul_el).append(line);
}
function item_action (params, el) {
var isbn = params.isbn;
+ $("#action_"+isbn).hide();
+ $("#waiting_"+isbn).show();
svc_ajax('post', params, function(data) {
if (data.checkouts) {
details.checkouts = data.checkouts;
details.holds = data.holds;
}
display_actions(el, isbn);
+ $("#action_"+isbn).show();
+ $("#waiting_"+isbn).hide();
});
}
if(checkout_popup) {
$(el).append( ajax_button(MSG_CHECK_OUT, function() {
if( confirm(MSG_CHECK_OUT_CONFIRM) ) {
+ $("#action_"+isbn).hide();
+ $("#waiting_"+isbn).show();
svc_ajax('post', {action: "checkout", isbn: isbn}, function(data) {
if (data.checkouts) {
details.checkouts = data.checkouts;
details.holds = data.holds;
}
item = display_actions(el, isbn);
+ $("#action_"+isbn).show();
+ $("#waiting_"+isbn).hide();
});
}
}) );
$('<div id="action_'+isbn+'" class="actions-menu">')
.append(actions)
.appendTo(el);
+ $("#action_"+isbn).before('<span id="waiting_'+isbn+'" style="display:none;"><img class="throbber" src="/opac-tmpl/lib/jquery/plugins/themes/classic/throbber.gif" /></span>');
};
this.search = function( q, page_size, page, callback ) {