Merge remote branch 'kc/new/enh/bug_5733' into kcmaster

This commit is contained in:
Chris Cormack 2011-02-14 09:29:19 +13:00
commit 0dedbfba5a
2 changed files with 5 additions and 5 deletions

View file

@ -64,7 +64,7 @@
<span class="loggedinusername">
<!-- TMPL_VAR NAME="loggedinusername" -->
</span>
(<a href="/cgi-bin/koha/mainpage.pl?logout.x=1"<!-- TMPL_IF NAME="intranetbookbag" --> onclick="javascript:delBasket(true);"<!-- /TMPL_IF -->>Log Out</a>) |
(<a href="/cgi-bin/koha/mainpage.pl?logout.x=1"<!-- TMPL_IF NAME="intranetbookbag" --> onclick="delBasket(true);"<!-- /TMPL_IF -->>Log Out</a>) |
<!-- TMPL_ELSE -->
You are not logged in |
<!-- /TMPL_IF -->

View file

@ -299,10 +299,10 @@ function delRecord (n, s) {
}
function delBasket() {
var rep = false;
rep = confirm(MSG_CONFIRM_DEL_BASKET);
function delBasket(rep) {
if (rep == undefined){
rep = confirm(MSG_CONFIRM_DEL_BASKET);
}
if (rep) {
delCookie(nameCookie);
document.location = "about:blank";