From bd865b84f92ee6432c57645e1676eaaffaf1fead 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 --- 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 ba56547..89e1f0e 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.1.4