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 207-213 function addSelRecords(valSel) { // function for adding a selection of biblios t Link Here
207
function showCartUpdate(msg){
207
function showCartUpdate(msg){
208
    // set body of popup window
208
    // set body of popup window
209
    $("#cartDetails").html(msg);
209
    $("#cartDetails").html(msg);
210
    $("#cartmenuitem").html(MSG_IN_YOUR_CART + " " + basketCount());
211
    showCart();
210
    showCart();
212
    setTimeout("hideCart()",2000);
211
    setTimeout("hideCart()",2000);
213
}
212
}
Lines 504-511 function updateAllLinks(target){ Link Here
504
}
503
}
505
504
506
$("#cartDetails").ready(function(){
505
$("#cartDetails").ready(function(){
507
    $("#cartDetails,#cartmenuitem,#cartmenulink").on("click",function(){ hideCart(); });
506
    $("#cartDetails,#cartmenulink").on("click",function(){ hideCart(); });
508
    $("#cartmenuitem").click(function(e){
507
    $("#cartmenulink").click(function(e){
509
        e.preventDefault();
508
        e.preventDefault();
510
        openBasket();
509
        openBasket();
511
        $("li").closest().removeClass("open");
510
        $("li").closest().removeClass("open");
512
- 

Return to bug 21174