From 189a007e43fe060bf226e2d468613eb2b49600fa Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 26 Mar 2015 16:10:11 +0100 Subject: [PATCH] [Signed-off] Bug 7391: Return to cart after adding items to a list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If you select items in your cart and choose to add them to a list, upon completion of the transaction the pop-up window, which was originally opened for the cart, is closed. Instead you should be returned to the Cart view. Test plan: Confirm the expected behavior. Confirmed. Signed-off-by: Marc VĂ©ron --- koha-tmpl/opac-tmpl/bootstrap/js/basket.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/js/basket.js b/koha-tmpl/opac-tmpl/bootstrap/js/basket.js index 675dc0a..6db26d1 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/js/basket.js +++ b/koha-tmpl/opac-tmpl/bootstrap/js/basket.js @@ -424,7 +424,11 @@ function openBiblio(dest,biblionumber) { function addSelToShelf() { var items = document.getElementById('records').value; if(items){ - document.location = "/cgi-bin/koha/opac-addbybiblionumber.pl?biblionumber="+items; + var iW = 820; + var iH = 450; + var optWin = "status=yes,scrollbars=yes,resizable=yes,toolbar=no,location=yes,height="+iH+",width="+iW; + var loc = "/cgi-bin/koha/opac-addbybiblionumber.pl?biblionumber="+items; + var shelf = open(loc, "shelf", optWin); } else { alert(MSG_NO_RECORD_SELECTED); } -- 1.7.10.4