|
Lines 1194-1209
Link Here
|
| 1194 |
} |
1194 |
} |
| 1195 |
}); |
1195 |
}); |
| 1196 |
|
1196 |
|
| 1197 |
[% SET active = clubs ? 1 : 0 %] |
1197 |
if( $("#circ_holds_select").length > 0 ){ |
| 1198 |
/* Set active tab based on whether a club search was submitted */ |
1198 |
[% SET active = clubs ? 1 : 0 %] |
| 1199 |
var tabs = $("#circ_holds_select li:eq(" + [% active | $raw %] + ") a").tab("show"); |
1199 |
/* Set active tab based on whether a club search was submitted */ |
| 1200 |
$( tabs[0].hash ).find("input.focus").focus(); |
1200 |
var tabs = $("#circ_holds_select li:eq(" + [% active | $raw %] + ") a").tab("show"); |
| 1201 |
|
1201 |
$( tabs[0].hash ).find("input.focus").focus(); |
| 1202 |
/* Change active focus when tabs change */ |
1202 |
|
| 1203 |
$("#circ_holds_select a[data-toggle='tab']").on("shown.bs.tab", function (e) { |
1203 |
/* Change active focus when tabs change */ |
| 1204 |
active_tab = e.target.hash; |
1204 |
$("#circ_holds_select a[data-toggle='tab']").on("shown.bs.tab", function (e) { |
| 1205 |
$( active_tab ).find("input.focus").focus(); |
1205 |
active_tab = e.target.hash; |
| 1206 |
}); |
1206 |
$( active_tab ).find("input.focus").focus(); |
|
|
1207 |
}); |
| 1208 |
} |
| 1209 |
|
| 1207 |
|
1210 |
|
| 1208 |
function ToggleHoldsToPlace() { |
1211 |
function ToggleHoldsToPlace() { |
| 1209 |
if ( $("#requestany").prop('checked') ) { |
1212 |
if ( $("#requestany").prop('checked') ) { |
| 1210 |
- |
|
|