Bugzilla – Attachment 3683 Details for
Bug 6065
confirmation when deleting an order
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch
0001-BZ6065-confirmation-when-deleting-an-order.patch (text/plain), 2.22 KB, created by
Paul Poulain
on 2011-04-05 12:50:59 UTC
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
Paul Poulain
Created:
2011-04-05 12:50:59 UTC
Size:
2.22 KB
patch
obsolete
>From a39c71fd4bea9dc91c56b4e57eca6309ea2ed0a7 Mon Sep 17 00:00:00 2001 >From: Paul Poulain <paul.poulain@biblibre.com> >Date: Tue, 5 Apr 2011 14:50:38 +0200 >Subject: [PATCH] BZ6065: confirmation when deleting an order > >when clicking on "delete order", there is no confirmation box, the order line is >deleted without any question ! >--- > .../prog/en/modules/acqui/basket.tmpl | 9 ++++++++- > 1 files changed, 8 insertions(+), 1 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tmpl >index e6df2c1..c966c9e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tmpl >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tmpl >@@ -33,6 +33,13 @@ > window.location = "<!-- TMPL_VAR name="script_name" -->?op=delete_confirm&basketno=<!-- TMPL_VAR name="basketno" -->&booksellerid=<!-- TMPL_VAR name="booksellerid" -->"; > } > } >+ function confirm_delete_item(ordernumber, biblionumber) { >+ var is_confirmed = confirm(_('Are you sure you want to delete this order ?')); >+ if (is_confirmed) { >+ window.location = "addorder.pl?ordernumber="+ordernumber+"&basketno=<!-- TMPL_VAR NAME="basketno" -->&quantity=0&biblionumber="+biblionumber; >+ } >+ } >+ > //]]> > </script> > <!-- TMPL_ELSE --> >@@ -269,7 +276,7 @@ > <a href="neworderempty.pl?ordernumber=<!-- TMPL_VAR NAME="ordernumber" -->&booksellerid=<!-- TMPL_VAR NAME="booksellerid" -->&basketno=<!-- TMPL_VAR NAME="basketno" -->">Modify</a> > </td> > <td> >- <a href="addorder.pl?ordernumber=<!-- TMPL_VAR NAME="ordernumber" -->&basketno=<!-- TMPL_VAR NAME="basketno" -->&quantity=0&biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">Delete</a> >+ <a href="javascript:confirm_delete_item(<!-- TMPL_VAR NAME="ordernumber" -->,<!-- TMPL_VAR NAME="biblionumber" -->)" class="button">Delete</a> > </td> > <!-- /TMPL_UNLESS --> > <!-- /TMPL_IF --> >-- >1.7.1 >
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 6065
:
3683
|
3684