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

(-)a/koha-tmpl/opac-tmpl/bootstrap/css/src/_responsive.scss (-2 / +16 lines)
Lines 383-389 Link Here
383
            padding: 0;
383
            padding: 0;
384
384
385
            a {
385
            a {
386
                @include border-radius-all( 7px );
387
                border-bottom: 0;
386
                border-bottom: 0;
388
                font-weight: normal;
387
                font-weight: normal;
389
                padding: .7em .2em;
388
                padding: .7em .2em;
Lines 435-441 Link Here
435
    #menu h4 a.menu-open,
434
    #menu h4 a.menu-open,
436
    #search-facets h4 a.menu-open {
435
    #search-facets h4 a.menu-open {
437
        border-bottom: 1px solid #D8D8D8;
436
        border-bottom: 1px solid #D8D8D8;
438
        border-radius: 7px 7px 0 0;
439
    }
437
    }
440
438
441
    #loginModal {
439
    #loginModal {
Lines 506-511 Link Here
506
            }
504
            }
507
        }
505
        }
508
    }
506
    }
507
508
    a {
509
        &.menu-collapse-toggle {
510
            &:link,
511
            &:visited,
512
            &:hover,
513
            &:active {
514
                color: #727272;
515
                cursor: default;
516
517
                &::before {
518
                    display: none;
519
                }
520
            }
521
        }
522
    }
509
}
523
}
510
524
511
@media only screen and ( min-width: 768px ) and ( max-width: 984px ) {
525
@media only screen and ( min-width: 768px ) and ( max-width: 984px ) {
(-)a/koha-tmpl/opac-tmpl/bootstrap/js/script.js (-8 / +23 lines)
Lines 13-31 enquire.register("screen and (max-width:608px)", { Link Here
13
13
14
enquire.register("screen and (min-width:768px)", {
14
enquire.register("screen and (min-width:768px)", {
15
    match : function() {
15
    match : function() {
16
        $(".menu-collapse").show();
16
        facetMenu( "show" );
17
    },
17
    },
18
    unmatch : function() {
18
    unmatch : function() {
19
        $(".menu-collapse").hide();
19
        facetMenu( "hide" );
20
    }
20
    }
21
});
21
});
22
22
23
function facetMenu( action ){
24
    if( action == "show" ){
25
        $(".menu-collapse-toggle").unbind("click", facetHandler )
26
        $(".menu-collapse").show();
27
    } else {
28
        $(".menu-collapse-toggle").bind("click", facetHandler ).removeClass("menu-open");
29
        $(".menu-collapse").hide();
30
    }
31
}
32
33
var facetHandler = function(e){
34
    e.preventDefault();
35
    $(this).toggleClass("menu-open");
36
    $(".menu-collapse").toggle();
37
};
38
23
$(document).ready(function(){
39
$(document).ready(function(){
24
    $(".close").click(function(){
40
    $(".close").click(function(){
25
        window.close();
41
        window.close();
26
    });
42
    });
27
    $(".focus").focus();
43
    $(".focus").focus();
28
44
45
    if( $(window).width() < 768 ){
46
        facetMenu("hide");
47
    }
48
29
    // clear the basket when user logs out
49
    // clear the basket when user logs out
30
    $("#logout").click(function(){
50
    $("#logout").click(function(){
31
        var nameCookie = "bib_list";
51
        var nameCookie = "bib_list";
Lines 46-56 $(document).ready(function(){ Link Here
46
            mem.removeAttr("style");
66
            mem.removeAttr("style");
47
        }
67
        }
48
    });
68
    });
49
    $(".menu-collapse-toggle").on("click",function(e){
69
50
        e.preventDefault();
51
        $(this).toggleClass("menu-open");
52
        $(".menu-collapse").toggle();
53
    });
54
    $(".loginModal-trigger").on("click",function(e){
70
    $(".loginModal-trigger").on("click",function(e){
55
        e.preventDefault();
71
        e.preventDefault();
56
        $("#loginModal").modal("show");
72
        $("#loginModal").modal("show");
57
- 

Return to bug 23492