|
Lines 975-983
Link Here
|
| 975 |
|
975 |
|
| 976 |
$(document).ready(function() { |
976 |
$(document).ready(function() { |
| 977 |
[% UNLESS clubs %] |
977 |
[% UNLESS clubs %] |
| 978 |
$('#circ_holds_select').tabs({active: 0}); |
978 |
$('#circ_holds_select').tabs({ |
|
|
979 |
active: 0, |
| 980 |
activate: function(){ |
| 981 |
$(this).find("input.focus").focus(); |
| 982 |
}, |
| 983 |
create: function(){ |
| 984 |
$(this).find("input.focus").focus(); |
| 985 |
} |
| 986 |
}); |
| 979 |
[% ELSE %] |
987 |
[% ELSE %] |
| 980 |
$('#circ_holds_select').tabs({active: 1}); |
988 |
$('#circ_holds_select').tabs({ |
|
|
989 |
active: 1, |
| 990 |
activate: function(){ |
| 991 |
$(this).find("input.focus").focus(); |
| 992 |
}, |
| 993 |
create: function(){ |
| 994 |
$(this).find("input.focus").focus(); |
| 995 |
} |
| 996 |
}); |
| 981 |
[% END %] |
997 |
[% END %] |
| 982 |
function ToggleHoldsToPlace() { |
998 |
function ToggleHoldsToPlace() { |
| 983 |
if ( $("#requestany").prop('checked') ) { |
999 |
if ( $("#requestany").prop('checked') ) { |
|
Lines 1258-1274
Link Here
|
| 1258 |
[% END %] |
1274 |
[% END %] |
| 1259 |
[% END %] |
1275 |
[% END %] |
| 1260 |
|
1276 |
|
| 1261 |
if ( $(".focus").is(":visible") ) { |
|
|
| 1262 |
$(".focus").focus(); |
| 1263 |
} |
| 1264 |
|
| 1265 |
$('[href="#holds_patronsearch_pane"]').click( function() { |
| 1266 |
$('#patron').focus(); |
| 1267 |
}) |
| 1268 |
|
| 1269 |
$('[href="#holds_clubsearch_pane"]').click( function() { |
| 1270 |
$('#club').focus(); |
| 1271 |
}) |
| 1272 |
}); |
1277 |
}); |
| 1273 |
</script> |
1278 |
</script> |
| 1274 |
[% END %] |
1279 |
[% END %] |
| 1275 |
- |
|
|