Jonathan Druart
84da78796e
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>
24 lines
902 B
JavaScript
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";
|
|
});
|
|
});
|