From 502a8cb7e2691505ba8146ac322a9c43f342a95a Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 18 Mar 2009 07:49:56 -0500 Subject: [PATCH] Writing Cart button to DOM with inline script. Fixes Bug 3044 without reintroducing Bug 2887 ("Cart is not translated"). Signed-off-by: Galen Charlton --- koha-tmpl/opac-tmpl/prog/en/includes/doc-head-close.inc | 8 ++++++-- koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc | 2 +- 2 files changed, 7 insertions(+), 3 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 7ebd8a8b93..d6eb9b7989 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 @@ -45,7 +45,8 @@ var MSG_NO_RECORD_SELECTED = _("No item was selected"); 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?"); + var MSG_CONFIRM_DEL_RECORDS = _("Are you sure you want to remove the selected items?"); + $("#cartDetails").ready(function(){ $("#cmspan").html("\"\" "+_("Cart")+""); }); $(window).load(function() { verify_images(); }); @@ -54,7 +55,10 @@ }); //]]> - + + +