Bugzilla – Attachment 70025 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.77 KB, created by
Kyle M Hall (khall)
on 2017-12-21 14:01:05 UTC
(
hide
)
Description:
Bug 19401: Add confirm message when deleting invoice
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2017-12-21 14:01:05 UTC
Size:
1.77 KB
patch
obsolete
>From 1299e991efc3909f750362ad6cfcb4b535bb2e35 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> > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > 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.10.2
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