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

(-)a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js (-2 / +3 lines)
Lines 62-68 $.fn.selectTabByID = function (tabID) { Link Here
62
$(document).ready(function () {
62
$(document).ready(function () {
63
    //check for a hash before setting focus
63
    //check for a hash before setting focus
64
    let hash = window.location.hash;
64
    let hash = window.location.hash;
65
    if (!hash) {
65
    if ( $('.search_patron_filter').length ) {
66
        $('.search_patron_filter').focus()
67
    } else if (!hash) {
66
        $(".tab-pane.active input:text:first").focus();
68
        $(".tab-pane.active input:text:first").focus();
67
    }
69
    }
68
    $("#header_search a[data-toggle='tab']").on("shown.bs.tab", function (e) {
70
    $("#header_search a[data-toggle='tab']").on("shown.bs.tab", function (e) {
69
- 

Return to bug 37373