From 35e4f1b7c3431718fe3d00143919d9d76fc7a304 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 Content-Type: text/plain; charset="utf-8" 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. --- .../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 0896075..4239b4f 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 62be158..a229521 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 %] -- 1.7.3