From 2fbb36048b0afa72f10ae7267acb530dc0352c79 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 21 Dec 2009 10:13:20 -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. --- koha-tmpl/opac-tmpl/prog/en/includes/doc-head-close.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 8b148ca63f..a94acd2f68 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(); }); -- 2.39.5