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 (-27 / +52 lines)
Lines 3617-3632 progress { Link Here
3617
}
3617
}
3618
3618
3619
#browse-return-to-results {
3619
#browse-return-to-results {
3620
    border-top-left-radius: 3px;
3620
    background-color: #E8F0F6;
3621
    border-top-right-radius: 3px;
3621
    border: 1px solid #B9D8D9;
3622
    border-bottom-width: 0;
3623
    border-top-left-radius: 5px;
3624
    border-top-right-radius: 5px;
3622
    display: block;
3625
    display: block;
3626
    padding: .5em;
3623
    text-align: center;
3627
    text-align: center;
3624
}
3628
}
3625
3629
3626
.browse-button {
3630
.browse-button {
3631
    background-color: #FFF;
3632
    border: 1px solid #B9D8D9;
3627
    color: #004D99;
3633
    color: #004D99;
3628
    display: inline-block;
3634
    display: block;
3635
    overflow: hidden;
3629
    padding: .4em .6em;
3636
    padding: .4em .6em;
3637
    text-align: center;
3638
    white-space: nowrap;
3639
    width: 100%;
3630
3640
3631
    &:hover {
3641
    &:hover {
3632
        background: #FAFAFA;
3642
        background: #FAFAFA;
Lines 3680-3713 span { Link Here
3680
    }
3690
    }
3681
}
3691
}
3682
3692
3683
.browse-label,
3684
.browse-prev-next {
3685
    border: 1px solid #B9D8D9;
3686
}
3687
3688
.browse-label {
3689
    background-color: #E8F0F6;
3690
    border-top-left-radius: 5px;
3691
    border-top-right-radius: 5px;
3692
}
3693
3694
.browse-prev-next {
3695
    border-bottom-left-radius: 5px;
3696
    border-bottom-right-radius: 5px;
3697
    border-top-width: 0;
3698
}
3699
3700
#browse-previous {
3693
#browse-previous {
3701
    border-bottom-left-radius: 5px;
3694
    border-bottom-width: 0;
3702
    border-right: 1px solid #B9D8D9;
3703
    padding-right: 1em;
3704
}
3695
}
3705
3696
3706
#browse-next {
3697
#browse-next {
3707
    border-bottom-right-radius: 5px;
3698
    border-bottom-right-radius: 5px;
3708
    border-top-width: 0;
3699
    border-bottom-left-radius: 5px;
3709
    float: right;
3710
    padding-right: 1em;
3711
}
3700
}
3712
3701
3713
.loading-overlay {
3702
.loading-overlay {
Lines 4317-4322 span { Link Here
4317
    }
4306
    }
4318
}
4307
}
4319
4308
4309
@media only screen and ( max-width: 768px ) {
4310
    .browse-button {
4311
        display: inline-block;
4312
        width: 50%;
4313
    }
4314
4315
    #browse-previous {
4316
        border-bottom-left-radius: 5px;
4317
        border-bottom-width: 1px;
4318
        border-right-width: 0;
4319
    }
4320
4321
    #browse-next {
4322
        border-bottom-left-radius: 0;
4323
        border-bottom-right-radius: 5px;
4324
    }
4325
}
4326
4320
@media (min-width: 800px) {
4327
@media (min-width: 800px) {
4321
    #helper {
4328
    #helper {
4322
        i {
4329
        i {
Lines 4344-4346 span { Link Here
4344
div#makechart ol li {
4351
div#makechart ol li {
4345
    list-style: none;
4352
    list-style: none;
4346
}
4353
}
4347
- 
4354
4355
@media only screen and ( min-width: 1200px ) {
4356
    .browse-button {
4357
        display: inline-block;
4358
        width: 50%;
4359
    }
4360
4361
    #browse-previous {
4362
        border-bottom-left-radius: 5px;
4363
        border-bottom-width: 1px;
4364
        border-right-width: 0;
4365
    }
4366
4367
    #browse-next {
4368
        border-bottom-left-radius: 0;
4369
        border-bottom-right-radius: 5px;
4370
        text-align: right;
4371
    }
4372
}

Return to bug 21304