From b676bed5309622ea78e199ef8ac8a8f121a7cba8 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 Restored indentations - Mark Tompsett Signed-off-by: Mark Tompsett Signed-off-by: Christopher Brannon Signed-off-by: Jonathan Druart Signed-off-by: Mason James --- koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 e5a1a0f2eb..4b0fdc649d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt @@ -164,6 +164,11 @@ function checkMultiHold() { $("#" + fieldID).val(""); }); + // Confirm cancelation of hold + $(".cancel-hold").on("click",function(e) { + return confirmDelete(MSG_CONFIRM_DELETE_HOLD); + }); + $('#hold-request-form').preventDoubleFormSubmit(); [% UNLESS ( borrowernumber || borrowers || noitems ) %] @@ -798,7 +803,7 @@ function checkMultiHold() { [% END %] - + Cancel -- 2.39.5