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

Return to bug 21304