From fc411c3c7efc089c59d4d10c0bcce21a97d7e646 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 24 Jan 2012 09:10:46 -0500 Subject: [PATCH] Bug 7461 - Cart offering to remove items when closing The "hide window" button in the cart called a quit() function which deletes any checked items. My understanding of the "hide window" button is that it should *only* hide the window, not perform any other operations. I'm removing the calls to the quit() function in both the OPAC and staff client and adding a CSS class, "close," which is already tied via jQuery to the window.close() function. To test in both OPAC and staff client: Add items to the cart. Try clicking the "hide window" button with items selected and without. In both cases the window should close without affecting the contents of the cart. Signed-off-by: Nicole C. Engard Signed-off-by: Paul Poulain (cherry picked from commit 5528b06fda325396484a3841d08687c697bc8ca6) Signed-off-by: Chris Nighswonger --- koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt | 2 +- koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt index 08960758e9..4239b4fe40 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt @@ -108,7 +108,7 @@ function placeHold () {
  • - Hide Window + Hide Window
  • diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tt index 62be15862b..a229521ccf 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tt @@ -128,7 +128,7 @@ function tagAdded() {
  • Download
  • Print
  • Empty and Close
  • -
  • Hide Window
  • +
  • Hide Window
  • [% END %] -- 2.39.5