From 2a28b30a3c5a02475d59d4beab9c3b67cfc666e3 Mon Sep 17 00:00:00 2001 From: Paul Poulain Date: Tue, 5 Apr 2011 14:54:48 +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 ! Signed-off-by: Katrin Fischer Signed-off-by: Chris Cormack --- .../intranet-tmpl/prog/en/modules/acqui/basket.tmpl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 aaa7462f50..02b0a068fd 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 = "?op=delete_confirm&basketno=&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=&quantity=0&biblionumber="+biblionumber; + } + } + //]]> @@ -270,7 +277,7 @@ &booksellerid=&basketno=">Modify - &basketno=&quantity=0&biblionumber=">Delete + ,)" class="button">Delete -- 2.39.5