From 128d163e1baf7d203373883e03980e3a5f1b2d6c Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Tue, 3 Oct 2017 02:47:40 +0000 Subject: [PATCH] Bug 19401: Add confirm message when deleting invoice To test: 1) Go to Acquisitions 2) Go to Invoices (left nav menu) 3) Click Search (no need to filter results) 4) Click dropdown menu for an invoice, click Details 5) Click Delete 6) Notice invoice is deleted instantly 7) Apply patch and repeat steps 4 and 5 8) Confirm the confirm message shows and works as expected Sponsored-by: Catalyst IT Signed-off-by: Katrin Fischer Signed-off-by: Kyle M Hall Signed-off-by: Jonathan Druart Signed-off-by: Nick Clemens --- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt index ba565471eb..89e1f0e04c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt @@ -23,6 +23,9 @@ } $(document).ready(function() { + $("#delete").click(function(){ + return confirmDelete(_("Are you sure you want to delete this invoice?")); + }); $("#orderst").dataTable($.extend(true, {}, dataTablesDefaults, { bInfo: false, bPaginate: false, @@ -123,7 +126,7 @@
[% UNLESS orders_loop.size %] - Delete + Delete [% END %]
-- 2.39.5