From 9931c8720244bcc19519e20f48a192c13c156536 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 21 Dec 2009 10:11:19 -0500 Subject: [PATCH] Fix for Bug 3271, Missing message when adding to a list with no items selected The shelf js was trying to access a variable set by the Cart-related js. With the cart disabled, the variable was missing. The patch sets this variable for cases when the Cart is turned off. --- .../opac-tmpl/prog/en/includes/doc-head-close.inc | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/doc-head-close.inc b/koha-tmpl/opac-tmpl/prog/en/includes/doc-head-close.inc index 8b148ca..a94acd2 100644 --- a/koha-tmpl/opac-tmpl/prog/en/includes/doc-head-close.inc +++ b/koha-tmpl/opac-tmpl/prog/en/includes/doc-head-close.inc @@ -50,7 +50,8 @@ var MSG_NO_RECORD_ADDED = _("No item was added to your cart"); var MSG_CONFIRM_DEL_BASKET = _("Are you sure you want to empty your cart?"); var MSG_CONFIRM_DEL_RECORDS = _("Are you sure you want to remove the selected items?"); - $("#cartDetails").ready(function(){ $("#cmspan").html("<\/i><\/i><\/span>\"\" "+_("Cart")+"<\/span><\/span><\/a>"); }); + $("#cartDetails").ready(function(){ $("#cmspan").html("<\/i><\/i><\/span>\"\" "+_("Cart")+"<\/span><\/span><\/a>"); }); + var MSG_NO_RECORD_SELECTED = _("No item was selected"); $(window).load(function() { verify_images(); }); -- 1.6.3.3