View | Details | Raw Unified | Return to bug 7599
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc (+1 lines)
Lines 55-60 Link Here
55
        var MSG_NO_RECORD_ADDED = _("No item was added to your cart");
55
        var MSG_NO_RECORD_ADDED = _("No item was added to your cart");
56
        var MSG_CONFIRM_DEL_BASKET = _("Are you sure you want to empty your cart?");
56
        var MSG_CONFIRM_DEL_BASKET = _("Are you sure you want to empty your cart?");
57
        var MSG_CONFIRM_DEL_RECORDS = _("Are you sure you want to remove the selected items?");
57
        var MSG_CONFIRM_DEL_RECORDS = _("Are you sure you want to remove the selected items?");
58
        var MSG_IN_YOUR_CART = _("Items in your cart: ");
58
        var MSG_NON_RESERVES_SELECTED = _("One or more selected items cannot be reserved.");
59
        var MSG_NON_RESERVES_SELECTED = _("One or more selected items cannot be reserved.");
59
    [% END %]
60
    [% END %]
60
    //]]>
61
    //]]>
(-)a/koha-tmpl/intranet-tmpl/prog/en/js/basket.js (-2 / +2 lines)
Lines 378-387 function showLess() { Link Here
378
function updateBasket(updated_value,target) {
378
function updateBasket(updated_value,target) {
379
	if(target){
379
	if(target){
380
	target.$('#basketcount').html(" <span>("+updated_value+")</span>");
380
	target.$('#basketcount').html(" <span>("+updated_value+")</span>");
381
	target.$('#cartDetails').html(_("Your cart contains ")+updated_value+_(" items"));
381
    target.$('#cartDetails').html(MSG_IN_YOUR_CART+updated_value);
382
	} else {
382
	} else {
383
	$('#basketcount').html(" <span>("+updated_value+")</span>");
383
	$('#basketcount').html(" <span>("+updated_value+")</span>");
384
	$('#cartDetails').html(_("Your cart contains ")+updated_value+_(" items"));
384
    $('#cartDetails').html(MSG_IN_YOUR_CART+updated_value);
385
	}
385
	}
386
	var basketcount = updated_value;
386
	var basketcount = updated_value;
387
}
387
}
(-)a/koha-tmpl/opac-tmpl/prog/en/includes/doc-head-close.inc (+1 lines)
Lines 56-61 Link Here
56
    var MSG_CONFIRM_DEL_BASKET = _("Are you sure you want to empty your cart?");
56
    var MSG_CONFIRM_DEL_BASKET = _("Are you sure you want to empty your cart?");
57
    var MSG_CONFIRM_DEL_RECORDS = _("Are you sure you want to remove the selected items?");
57
    var MSG_CONFIRM_DEL_RECORDS = _("Are you sure you want to remove the selected items?");
58
    var MSG_ITEM_IN_CART = _("In your cart");
58
    var MSG_ITEM_IN_CART = _("In your cart");
59
    var MSG_IN_YOUR_CART = _("Items in your cart: ");
59
    var MSG_ITEM_NOT_IN_CART = _("Add to your cart");
60
    var MSG_ITEM_NOT_IN_CART = _("Add to your cart");
60
	$("#cartDetails").ready(function(){ $("#cmspan").html("<a href=\"#\" id=\"cartmenulink\" class=\"\"><i><\/i><span><i><\/i><span><\/span><span id=\"carticon\"></span> "+_("Cart")+"<span id=\"basketcount\"><\/span><\/span><\/a>"); }); [% ELSE %][% IF ( virtualshelves ) %]
61
	$("#cartDetails").ready(function(){ $("#cmspan").html("<a href=\"#\" id=\"cartmenulink\" class=\"\"><i><\/i><span><i><\/i><span><\/span><span id=\"carticon\"></span> "+_("Cart")+"<span id=\"basketcount\"><\/span><\/span><\/a>"); }); [% ELSE %][% IF ( virtualshelves ) %]
61
    var MSG_NO_RECORD_SELECTED = _("No item was selected");[% END %][% END %]
62
    var MSG_NO_RECORD_SELECTED = _("No item was selected");[% END %][% END %]
(-)a/koha-tmpl/opac-tmpl/prog/en/js/basket.js (-3 / +2 lines)
Lines 400-409 function showLess() { Link Here
400
function updateBasket(updated_value,target) {
400
function updateBasket(updated_value,target) {
401
	if(target){
401
	if(target){
402
	target.$('#basketcount').html("<span>"+updated_value+"</span>");
402
	target.$('#basketcount').html("<span>"+updated_value+"</span>");
403
	target.$('#cartDetails').html(_("Your cart contains ")+updated_value+_(" items"));
403
    target.$('#cartDetails').html(MSG_IN_YOUR_CART+updated_value);
404
	} else {
404
	} else {
405
	$('#basketcount').html("<span>"+updated_value+"</span>");
405
	$('#basketcount').html("<span>"+updated_value+"</span>");
406
	$('#cartDetails').html(_("Your cart contains ")+updated_value+_(" items"));
406
    $('#cartDetails').html(MSG_IN_YOUR_CART+updated_value);
407
	}
407
	}
408
	var basketcount = updated_value;
408
	var basketcount = updated_value;
409
}
409
}
410
- 

Return to bug 7599