(BUG #4352) Adding a popup at removing of a basket
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
This commit is contained in:
parent
97f6e49020
commit
2f67f7c610
1 changed files with 11 additions and 1 deletions
|
@ -25,6 +25,16 @@
|
||||||
}
|
}
|
||||||
//]]>
|
//]]>
|
||||||
</script>
|
</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_ELSE -->
|
||||||
<!-- TMPL_UNLESS name="grouped" -->
|
<!-- TMPL_UNLESS name="grouped" -->
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
@ -81,7 +91,7 @@
|
||||||
</script>
|
</script>
|
||||||
<ul id="toolbar-list" class="toolbar">
|
<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="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" -->
|
<!-- 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><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>
|
<li><a href="/cgi-bin/koha/acqui/uncertainprice.pl?booksellerid=<!-- TMPL_VAR name="booksellerid" -->&owner=1" class="button" id="uncertpricesbutton">Uncertain prices</a></li>
|
||||||
|
|
Loading…
Reference in a new issue