|
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 |
- |
|
|