Bugzilla – Attachment 67794 Details for
Bug 19401
No confirm message when deleting an invoice from invoice detail page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19401: Add confirm message when deleting invoice
Bug-19401-Add-confirm-message-when-deleting-invoic.patch (text/plain), 1.73 KB, created by
Katrin Fischer
on 2017-10-07 12:55:54 UTC
(
hide
)
Description:
Bug 19401: Add confirm message when deleting invoice
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2017-10-07 12:55:54 UTC
Size:
1.73 KB
patch
obsolete
>From f67ed712b37158d92f96cb4a664f7c57db2826c0 Mon Sep 17 00:00:00 2001 >From: Aleisha Amohia <aleishaamohia@hotmail.com> >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 <katrin.fischer.83@web.de> >--- > 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 @@ > <fieldset class="action"> > <input type="submit" value="Save" /> > [% UNLESS orders_loop.size %] >- <a href="invoice.pl?op=delete&invoiceid=[% invoiceid %]">Delete</a> >+ <a href="invoice.pl?op=delete&invoiceid=[% invoiceid %]" id="delete">Delete</a> > [% END %] > </fieldset> > </form> >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 19401
:
67541
|
67794
|
70025