|
Lines 16-22
Link Here
|
| 16 |
<form method="get" class="patron_search_form"> |
16 |
<form method="get" class="patron_search_form"> |
| 17 |
<div class="hint">Enter patron card number or partial name:</div> |
17 |
<div class="hint">Enter patron card number or partial name:</div> |
| 18 |
<input type="text" size="40" id="search_patron_filter_simple" class="search_patron_filter focus" autocomplete="off" /> |
18 |
<input type="text" size="40" id="search_patron_filter_simple" class="search_patron_filter focus" autocomplete="off" /> |
| 19 |
<input type="submit" class="btn btn-primary" value="Search" /> |
19 |
<input type="submit" class="btn btn-primary search_patron_filter_btn" value="Search" /> |
| 20 |
</form> |
20 |
</form> |
| 21 |
[% END %] |
21 |
[% END %] |
| 22 |
|
22 |
|
|
Lines 105-111
Link Here
|
| 105 |
</ol> |
105 |
</ol> |
| 106 |
</fieldset> |
106 |
</fieldset> |
| 107 |
<fieldset class="action"> |
107 |
<fieldset class="action"> |
| 108 |
<input type="submit" class="btn btn-primary" value="Search" /> |
108 |
<input type="submit" class="btn btn-primary search_patron_filter_btn" value="Search" /> |
| 109 |
<input type="button" value="Clear" class="btn btn-default clear_search" /> |
109 |
<input type="button" value="Clear" class="btn btn-default clear_search" /> |
| 110 |
</fieldset> |
110 |
</fieldset> |
| 111 |
</form> |
111 |
</form> |
|
Lines 788-793
Link Here
|
| 788 |
patron_search_form.on('submit', update_search_type); |
788 |
patron_search_form.on('submit', update_search_type); |
| 789 |
patron_search_form.on('submit', function(){ |
789 |
patron_search_form.on('submit', function(){ |
| 790 |
parent_block.find(".searchheader").show(); |
790 |
parent_block.find(".searchheader").show(); |
|
|
791 |
// Disable the search button until results are returned and displayed |
| 792 |
patron_search_form.find(".search_patron_filter_btn").prop({disabled: true}); |
| 791 |
}); |
793 |
}); |
| 792 |
|
794 |
|
| 793 |
|
795 |
|
|
Lines 910-915
Link Here
|
| 910 |
} |
912 |
} |
| 911 |
patrons_table.data('loaded_from_state', false); |
913 |
patrons_table.data('loaded_from_state', false); |
| 912 |
first_draw = 1; // Only redirect if we are coming from here |
914 |
first_draw = 1; // Only redirect if we are coming from here |
|
|
915 |
table_dt.on('draw.dt', function () { |
| 916 |
patron_search_form.find(".search_patron_filter_btn").prop({disabled: false}); |
| 917 |
}); |
| 913 |
table_dt.draw(); |
918 |
table_dt.draw(); |
| 914 |
return false; |
919 |
return false; |
| 915 |
} |
920 |
} |
|
Lines 923-928
Link Here
|
| 923 |
patron_search_form.find(".branchcode_filter option:first").prop("selected", true); |
928 |
patron_search_form.find(".branchcode_filter option:first").prop("selected", true); |
| 924 |
patron_search_form.find("select[name='sort1_filter']").val('').trigger("change"); |
929 |
patron_search_form.find("select[name='sort1_filter']").val('').trigger("change"); |
| 925 |
patron_search_form.find("select[name='sort2_filter']").val('').trigger("change"); |
930 |
patron_search_form.find("select[name='sort2_filter']").val('').trigger("change"); |
|
|
931 |
patron_search_form.find(".search_patron_filter_btn").prop({disabled: false}); |
| 926 |
parent_block.find(".firstletter_filter").val(''); |
932 |
parent_block.find(".firstletter_filter").val(''); |
| 927 |
patron_search_form.find(".search_patron_filter").val(''); |
933 |
patron_search_form.find(".search_patron_filter").val(''); |
| 928 |
[% IF adjust_history %] |
934 |
[% IF adjust_history %] |
| 929 |
- |
|
|