Bugzilla – Attachment 1193 Details for
Bug 3271
Missing message when adding to a list with no items selected
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed additional fix for HEAD
0001-Fix-for-Bug-3271-Missing-message-when-adding-to-a-li.patch (text/plain), 1.96 KB, created by
Chris Cormack
on 2009-12-21 15:15:00 UTC
(
hide
)
Description:
Proposed additional fix for HEAD
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2009-12-21 15:15:00 UTC
Size:
1.96 KB
patch
obsolete
>From 9931c8720244bcc19519e20f48a192c13c156536 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >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("<a href=\"#\" id=\"cartmenulink\" class=\"\"><i><\/i><span><i><\/i><span><\/span><img src=\"/opac-tmpl/prog/images/cart.gif\" width=\"14\" height=\"14\" alt=\"\" border=\"0\" /> "+_("Cart")+"<span id=\"basketcount\"><\/span><\/span><\/a>"); }); <!-- /TMPL_IF --> >+ $("#cartDetails").ready(function(){ $("#cmspan").html("<a href=\"#\" id=\"cartmenulink\" class=\"\"><i><\/i><span><i><\/i><span><\/span><img src=\"/opac-tmpl/prog/images/cart.gif\" width=\"14\" height=\"14\" alt=\"\" border=\"0\" /> "+_("Cart")+"<span id=\"basketcount\"><\/span><\/span><\/a>"); }); <!-- TMPL_ELSE --><!-- TMPL_IF NAME="virtualshelves" --> >+ var MSG_NO_RECORD_SELECTED = _("No item was selected");<!-- /TMPL_IF --><!-- /TMPL_IF --> > <!-- TMPL_IF NAME="OPACAmazonCoverImages" -->$(window).load(function() { > verify_images(); > });<!-- /TMPL_IF --> >-- >1.6.3.3 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 3271
:
1191
|
1192
| 1193 |
2279