Koha/koha-tmpl/intranet-tmpl/prog/js/serials-toolbar.js
Koha Development Team d659526b5a
Bug 38664: Tidy the whole codebase
This commit is generated using:
  % perl misc/devel/tidy.pl
*within* ktd, to get the same version of perltidy than what will be used
by our CI (currently v20230309).

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2025-02-11 14:58:24 +01:00

35 lines
1,020 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";
});
});