(BUG #4352) Adding a popup at removing of a basket

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
This commit is contained in:
Alex Arnaud 2010-03-30 13:42:28 +02:00 committed by Galen Charlton
parent 97f6e49020
commit 2f67f7c610

View file

@ -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" -->&amp;op=add_form" class="button" id="basketheadbutton">Edit basket header information</a></li>
<li><a href="<!-- TMPL_VAR NAME="script_name" -->?op=del_basket&amp;basketno=<!-- TMPL_VAR NAME="basketno" -->&amp;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" -->&amp;owner=1" class="button" id="uncertpricesbutton">Uncertain prices</a></li>