|
Lines 49-63
$.fn.selectTabByID = function (tabID) {
Link Here
|
| 49 |
}; |
49 |
}; |
| 50 |
|
50 |
|
| 51 |
$(document).ready(function() { |
51 |
$(document).ready(function() { |
| 52 |
$('#header_search').tabs({ |
52 |
//check for a hash before setting focus |
| 53 |
create: function( e, ui ){ |
53 |
let hash = window.location.hash; |
| 54 |
ui.panel.find("input:text:first").focus(); |
54 |
if ( ! hash ) { |
| 55 |
}, |
55 |
$('#header_search').tabs({ |
| 56 |
activate: function ( e, ui ) { |
56 |
create: function( e, ui ){ |
| 57 |
ui.newPanel.find("input:text:first").focus(); |
57 |
ui.panel.find("input:text:first").focus(); |
| 58 |
} |
58 |
}, |
| 59 |
}); |
59 |
activate: function ( e, ui ) { |
| 60 |
|
60 |
ui.newPanel.find("input:text:first").focus(); |
|
|
61 |
} |
| 62 |
}); |
| 63 |
} |
| 61 |
$(".close").click(function(){ window.close(); }); |
64 |
$(".close").click(function(){ window.close(); }); |
| 62 |
|
65 |
|
| 63 |
$("#checkin_search form").preventDoubleFormSubmit(); |
66 |
$("#checkin_search form").preventDoubleFormSubmit(); |
| 64 |
- |
|
|