[Koha-patches] [PATCH] (BUG #4352) Adding a popup at removing of a basket
Alex Arnaud
alex.arnaud at biblibre.com
Tue Mar 30 13:42:28 CEST 2010
---
.../prog/en/modules/acqui/basket.tmpl | 12 +++++++++++-
1 files changed, 11 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 1b30ddc..1a237ef 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tmpl
@@ -25,6 +25,16 @@
}
//]]>
</script>
+<script type="text/javascript">
+//<![CDATA[
+ function confirm_deletion() {
+ var is_confirmed = confirm(_('Are you sure you want to delete this basket?'));
+ if (is_confirmed) {
+ window.location = "<!-- TMPL_VAR name="script_name" -->?op=delete_confirm&basketno=<!-- TMPL_VAR name="basketno" -->&booksellerid=<!-- TMPL_VAR name="booksellerid" -->";
+ }
+ }
+//]]>
+</script>
<!-- TMPL_ELSE -->
<!-- TMPL_UNLESS name="grouped" -->
<script type="text/javascript">
@@ -81,7 +91,7 @@
</script>
<ul id="toolbar-list" class="toolbar">
<li><a href="basketheader.pl?basketno=<!-- TMPL_VAR NAME="basketno" -->&op=add_form" class="button" id="basketheadbutton">Edit basket header information</a></li>
- <li><a href="<!-- TMPL_VAR NAME="script_name" -->?op=del_basket&basketno=<!-- TMPL_VAR NAME="basketno" -->&booksellerid=<!-- TMPL_VAR NAME="booksellerid" -->" class="button" id="delbasketbutton">Delete this basket</a></li>
+ <li><a href="javascript:confirm_deletion();" class="button" id="delbasketbutton">Delete this basket</a></li>
<!-- TMPL_IF name="unclosable" -->
<li><button onclick="confirm_close()" class="yui-button-disabled" id="closebutton" type="push" disabled="true" title="You can not close this basket" >Can not close basket</a></li>
<li><a href="/cgi-bin/koha/acqui/uncertainprice.pl?booksellerid=<!-- TMPL_VAR name="booksellerid" -->&owner=1" class="button" id="uncertpricesbutton">Uncertain prices</a></li>
--
1.6.3.3
More information about the Koha-patches
mailing list