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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc (-8 / +3 lines)
Lines 21-35 Link Here
21
                    [% END %]
21
                    [% END %]
22
                    <ul class="nav">
22
                    <ul class="nav">
23
                        [% IF ( Koha.Preference( 'opacbookbag' ) == 1 ) %]
23
                        [% IF ( Koha.Preference( 'opacbookbag' ) == 1 ) %]
24
                            <li class="dropdown">
24
                            <li>
25
                                <a href="#" title="Collect items you are interested in" class="dropdown-toggle" id="cartmenulink" data-toggle="dropdown" role="button">
25
                                <a href="#" title="Collect items you are interested in" id="cartmenulink" role="button">
26
                                    <i id="carticon" class="fa fa-shopping-cart fa-icon-white"></i> <span class="cartlabel">Cart</span> <span id="basketcount"></span> <b class="caret"></b>
26
                                    <i id="carticon" class="fa fa-shopping-cart fa-icon-white"></i> <span class="cartlabel">Cart</span> <span id="basketcount"></span>
27
                                </a>
27
                                </a>
28
                                <ul aria-labelledby="cartmenulink" role="menu" class="dropdown-menu">
29
                                    <li role="presentation">
30
                                        <a href="#" id="cartmenuitem" class="cart-message" tabindex="-1" role="menuitem">Your cart is empty.</a>
31
                                    </li>
32
                                </ul>
33
                            </li>
28
                            </li>
34
                        [% END %]
29
                        [% END %]
35
                        [% IF ( Koha.Preference( 'virtualshelves' ) == 1 ) && ( Koha.Preference( 'opacbookbag' ) == 1 ) %]
30
                        [% IF ( Koha.Preference( 'virtualshelves' ) == 1 ) && ( Koha.Preference( 'opacbookbag' ) == 1 ) %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/js/basket.js (-4 / +2 lines)
Lines 209-215 function addSelRecords(valSel) { // function for adding a selection of biblios t Link Here
209
function showCartUpdate(msg){
209
function showCartUpdate(msg){
210
    // set body of popup window
210
    // set body of popup window
211
    $("#cartDetails").html(msg);
211
    $("#cartDetails").html(msg);
212
    $("#cartmenuitem").html(MSG_IN_YOUR_CART + " " + basketCount());
213
    showCart();
212
    showCart();
214
    setTimeout("hideCart()",2000);
213
    setTimeout("hideCart()",2000);
215
}
214
}
Lines 507-514 function updateAllLinks(target){ Link Here
507
}
506
}
508
507
509
$("#cartDetails").ready(function(){
508
$("#cartDetails").ready(function(){
510
    $("#cartDetails,#cartmenuitem,#cartmenulink").on("click",function(){ hideCart(); });
509
    $("#cartDetails,#cartmenulink").on("click",function(){ hideCart(); });
511
    $("#cartmenuitem").click(function(e){
510
    $("#cartmenulink").click(function(e){
512
        e.preventDefault();
511
        e.preventDefault();
513
        openBasket();
512
        openBasket();
514
        $("li").closest().removeClass("open");
513
        $("li").closest().removeClass("open");
515
- 

Return to bug 21174