From 0ad7352b6521a58073552fd7ebf3303fb0ce4f51 Mon Sep 17 00:00:00 2001 From: Luke Honiss Date: Thu, 19 Jan 2017 02:55:31 +0000 Subject: [PATCH] Bug 11450: Hold Request Confirm Deletion ==TEST PLAN== 1) Go to an item with a hold and click on the holds tab on the left 2) Click the red 'X' 3) The hold will be deleted immediately 4) Apply patch 5) Return to an item with a hold and click the 'X' 6) There will now be a confirmation dialog 7) Click cancel and the dialog will disappear and the hold will not be deleted 8) Click OK and the hold will be deleted --- .../prog/en/modules/reserve/request.tt | 60 ++++++++++++---------- 1 file changed, 33 insertions(+), 27 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt index 12b4e1b..41580e9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt @@ -168,6 +168,12 @@ function checkMultiHold() { $("#" + fieldID).val(""); }); + // Confirm cancelation of hold + $(".cancel-hold").on("click",function(e) { + var MSG_CONFIRM_CANCEL_HOLD = (_("Are you sure you want to cancel the hold?")); + return confirmDelete(MSG_CONFIRM_CANCEL_HOLD); + }); + [% UNLESS ( borrowernumber || borrowers || noitems ) %] [% IF ( CircAutocompl ) %] @@ -855,38 +861,38 @@ function checkMultiHold() { [% END %] - - Cancel - - - - [% IF SuspendHoldsIntranet %] - - [% UNLESS ( reserveloo.found ) %] - - - [% IF AutoResumeSuspendedHolds %] - - - Clear date - [% ELSE %] - - [% END %] - [% ELSE %] - - [% END %] - - [% END # IF SuspendHoldsIntranet %] + + Cancel + + + + [% IF SuspendHoldsIntranet %] + + [% UNLESS ( reserveloo.found ) %] + + + [% IF AutoResumeSuspendedHolds %] + + + Clear date + [% ELSE %] + + [% END %] +[% ELSE %] + +[% END %] + + [% END # IF SuspendHoldsIntranet %] - + - [% END %] - - [% END %] +[% END %] + +[% END %] [% END %]
- +
-- 2.1.4