Bugzilla – Attachment 67541 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.66 KB, created by
Aleisha Amohia
on 2017-10-03 02:54:20 UTC
(
hide
)
Description:
Bug 19401: Add confirm message when deleting invoice
Filename:
MIME Type:
Creator:
Aleisha Amohia
Created:
2017-10-03 02:54:20 UTC
Size:
1.66 KB
patch
obsolete
>From bd865b84f92ee6432c57645e1676eaaffaf1fead 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 >--- > 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 @@ > <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.1.4
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