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

(-)a/koha-tmpl/intranet-tmpl/js/browser.js (-2 / +4 lines)
Lines 1-3 Link Here
1
/* global BROWSER_PREVIOUS BROWSER_NEXT BROWSER_RETURN_TO_SEARCH */
2
1
if ( KOHA === undefined ) var KOHA = {};
3
if ( KOHA === undefined ) var KOHA = {};
2
4
3
KOHA.browser = function (searchid, biblionumber) {
5
KOHA.browser = function (searchid, biblionumber) {
Lines 70-76 KOHA.browser = function (searchid, biblionumber) { Link Here
70
                if ( ev.which == 2 || ev.which == 1 && ev.ctrlKey ) {
72
                if ( ev.which == 2 || ev.which == 1 && ev.ctrlKey ) {
71
                    // Middle click or ctrl + click
73
                    // Middle click or ctrl + click
72
                    ev.preventDefault();
74
                    ev.preventDefault();
73
                    var newwindow = window.open( $(this).attr('href') + '&searchid=' + me.searchid, '_blank' )
75
                    var newwindow = window.open( $(this).attr('href') + '&searchid=' + me.searchid, '_blank' );
74
                    newwindow.blur();
76
                    newwindow.blur();
75
                    window.focus();
77
                    window.focus();
76
                } else if ( ev.which == 1 ) {
78
                } else if ( ev.which == 1 ) {
Lines 102-108 KOHA.browser = function (searchid, biblionumber) { Link Here
102
                    } else {
104
                    } else {
103
                        nextbutton = '<a href="#" id="browse-next" class="browse-button">' + BROWSER_NEXT + ' »</a>';
105
                        nextbutton = '<a href="#" id="browse-next" class="browse-button">' + BROWSER_NEXT + ' »</a>';
104
                    }
106
                    }
105
                    $('#menu').before('<div class="browse-controls"><div class="browse-controls-inner"><div class="browse-label"><a href="' + searchURL + '" id="browse-return-to-results" class="browse-button searchwithcontext">' + BROWSER_RETURN_TO_SEARCH + '</a></div><div class="browse-prev-next">' + prevbutton + nextbutton + '</div></div></div>');
107
                    $('#menu').before('<div class="browse-controls"><div class="browse-controls-inner"><div class="browse-label"><a href="' + searchURL + '" id="browse-return-to-results" class="searchwithcontext">' + BROWSER_RETURN_TO_SEARCH + '</a></div><div class="browse-prev-next">' + prevbutton + nextbutton + '</div></div></div>');
106
                    $('a#browse-previous').click(function (ev) {
108
                    $('a#browse-previous').click(function (ev) {
107
                        ev.preventDefault();
109
                        ev.preventDefault();
108
                        browseRecords(-1);
110
                        browseRecords(-1);
(-)a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss (-25 / +13 lines)
Lines 3610-3625 progress { Link Here
3610
}
3610
}
3611
3611
3612
#browse-return-to-results {
3612
#browse-return-to-results {
3613
    border-top-left-radius: 3px;
3613
    background-color: #E8F0F6;
3614
    border-top-right-radius: 3px;
3614
    border: 1px solid #B9D8D9;
3615
    border-bottom-width: 0;
3616
    border-top-left-radius: 5px;
3617
    border-top-right-radius: 5px;
3615
    display: block;
3618
    display: block;
3619
    padding: .5em;
3616
    text-align: center;
3620
    text-align: center;
3617
}
3621
}
3618
3622
3619
.browse-button {
3623
.browse-button {
3624
    background-color: #FFF;
3625
    border: 1px solid #B9D8D9;
3620
    color: #004D99;
3626
    color: #004D99;
3621
    display: inline-block;
3627
    display: inline-block;
3628
    overflow: hidden;
3622
    padding: .4em .6em;
3629
    padding: .4em .6em;
3630
    white-space: nowrap;
3631
    width: 50%;
3623
3632
3624
    &:hover {
3633
    &:hover {
3625
        background: #FAFAFA;
3634
        background: #FAFAFA;
Lines 3673-3706 span { Link Here
3673
    }
3682
    }
3674
}
3683
}
3675
3684
3676
.browse-label,
3677
.browse-prev-next {
3678
    border: 1px solid #B9D8D9;
3679
}
3680
3681
.browse-label {
3682
    background-color: #E8F0F6;
3683
    border-top-left-radius: 5px;
3684
    border-top-right-radius: 5px;
3685
}
3686
3687
.browse-prev-next {
3688
    border-bottom-left-radius: 5px;
3689
    border-bottom-right-radius: 5px;
3690
    border-top-width: 0;
3691
}
3692
3693
#browse-previous {
3685
#browse-previous {
3694
    border-bottom-left-radius: 5px;
3686
    border-bottom-left-radius: 5px;
3695
    border-right: 1px solid #B9D8D9;
3687
    border-right-width: 0;
3696
    padding-right: 1em;
3697
}
3688
}
3698
3689
3699
#browse-next {
3690
#browse-next {
3700
    border-bottom-right-radius: 5px;
3691
    border-bottom-right-radius: 5px;
3701
    border-top-width: 0;
3692
    text-align: right;
3702
    float: right;
3703
    padding-right: 1em;
3704
}
3693
}
3705
3694
3706
.loading-overlay {
3695
.loading-overlay {
3707
- 

Return to bug 21304