Lines 430-440
Link Here
|
430 |
<li><label for="branchcode">Library:</label> |
430 |
<li><label for="branchcode">Library:</label> |
431 |
<select name="branchcode" id="branchcode"> |
431 |
<select name="branchcode" id="branchcode"> |
432 |
<option value="">Any</option> |
432 |
<option value="">Any</option> |
433 |
[% IF branchfilter %] |
433 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => branchfilter || branchcode ) %] |
434 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => branchfilter ) %] |
|
|
435 |
[% ELSE %] |
436 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => branchcode ) %] |
437 |
[% END %] |
438 |
</select> |
434 |
</select> |
439 |
</li> |
435 |
</li> |
440 |
<li><label for="budgetid">Fund:</label> |
436 |
<li><label for="budgetid">Fund:</label> |
Lines 500-511
Link Here
|
500 |
|
496 |
|
501 |
<label for="branchcode">Viewing suggestions for library:</label> |
497 |
<label for="branchcode">Viewing suggestions for library:</label> |
502 |
<select name="branchcode" id="branchcode"> |
498 |
<select name="branchcode" id="branchcode"> |
503 |
<option value="">Any</option> |
499 |
<option value="__ANY__">Any</option> |
504 |
[% IF branchfilter %] |
500 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => branchfilter || branchcode ) %] |
505 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => branchfilter ) %] |
|
|
506 |
[% ELSE %] |
507 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => branchcode ) %] |
508 |
[% END %] |
509 |
</select> |
501 |
</select> |
510 |
|
502 |
|
511 |
|
503 |
|
Lines 1015-1025
Link Here
|
1015 |
[% END %] |
1007 |
[% END %] |
1016 |
|
1008 |
|
1017 |
$("#branchcode").on('change',function(){ |
1009 |
$("#branchcode").on('change',function(){ |
|
|
1010 |
[%# Modify the hidden input in the filters block from the library %] |
1011 |
[%# dropdown list at the top of suggestion list %] |
1018 |
let branchcode = $(this).val(); |
1012 |
let branchcode = $(this).val(); |
1019 |
if( branchcode == '' ){ branchcode = "__ANY__" } |
|
|
1020 |
$('input[name="branchcode"]').val( branchcode ); |
1013 |
$('input[name="branchcode"]').val( branchcode ); |
1021 |
$('form[name="suggestionfilter"]').submit(); |
1014 |
$('form[name="suggestionfilter"]').submit(); |
1022 |
}); |
1015 |
}); |
|
|
1016 |
|
1023 |
$(".checkall").click(function(e){ |
1017 |
$(".checkall").click(function(e){ |
1024 |
e.preventDefault(); |
1018 |
e.preventDefault(); |
1025 |
$(this).parents('form').checkCheckboxes(); |
1019 |
$(this).parents('form').checkCheckboxes(); |
1026 |
- |
|
|