Koha/koha-tmpl/intranet-tmpl/prog/js/serials-toolbar.js
Jonathan Druart 84da78796e
Bug 34478: Adjust 'op' on serials/subscription-renew
multi_renew now has a validation step
This patch also removes 2 variables that were not used ($mode and $done)

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2024-03-01 11:00:16 +01:00

24 lines
902 B
JavaScript

/* global subscriptionid __ */
function popup(subscriptionid) {
newin=window.open("subscription-renew.pl?op=renew&subscriptionid="+subscriptionid,'popup','width=590,height=440,toolbar=false,scrollbars=yes');
}
$(document).ready(function() {
$("#deletesub").on("click", function(){
return confirm( __("Are you sure you want to delete this subscription?") );
});
$("#reopen").click(function(){
return confirm( __("Are you sure you want to reopen this subscription?") );
});
$("#close").on("click", function(){
return confirm( __("Are you sure you want to close this subscription?") );
});
$("#renew").click(function(){
popup( subscriptionid );
return false;
});
$("#mana-subscription-share").click(function() {
window.location="subscription-detail.pl?subscriptionid=" + subscriptionid + "&op=share";
});
});