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 789-794
Link Here
|
789 |
patron_search_form.on('submit', update_search_type); |
789 |
patron_search_form.on('submit', update_search_type); |
790 |
patron_search_form.on('submit', function(){ |
790 |
patron_search_form.on('submit', function(){ |
791 |
parent_block.find(".searchheader").show(); |
791 |
parent_block.find(".searchheader").show(); |
|
|
792 |
// Disable the search button until results are returned and displayed |
793 |
patron_search_form.find(".search_patron_filter_btn").prop({disabled: true}); |
792 |
}); |
794 |
}); |
793 |
|
795 |
|
794 |
|
796 |
|
Lines 911-916
Link Here
|
911 |
} |
913 |
} |
912 |
patrons_table.data('loaded_from_state', false); |
914 |
patrons_table.data('loaded_from_state', false); |
913 |
first_draw = 1; // Only redirect if we are coming from here |
915 |
first_draw = 1; // Only redirect if we are coming from here |
|
|
916 |
table_dt.on('draw.dt', function () { |
917 |
patron_search_form.find(".search_patron_filter_btn").prop({disabled: false}); |
918 |
}); |
914 |
table_dt.draw(); |
919 |
table_dt.draw(); |
915 |
return false; |
920 |
return false; |
916 |
} |
921 |
} |
Lines 924-929
Link Here
|
924 |
patron_search_form.find(".branchcode_filter option:first").prop("selected", true); |
929 |
patron_search_form.find(".branchcode_filter option:first").prop("selected", true); |
925 |
patron_search_form.find("select[name='sort1_filter']").val('').trigger("change"); |
930 |
patron_search_form.find("select[name='sort1_filter']").val('').trigger("change"); |
926 |
patron_search_form.find("select[name='sort2_filter']").val('').trigger("change"); |
931 |
patron_search_form.find("select[name='sort2_filter']").val('').trigger("change"); |
|
|
932 |
patron_search_form.find(".search_patron_filter_btn").prop({disabled: false}); |
927 |
parent_block.find(".firstletter_filter").val(''); |
933 |
parent_block.find(".firstletter_filter").val(''); |
928 |
patron_search_form.find(".search_patron_filter").val(''); |
934 |
patron_search_form.find(".search_patron_filter").val(''); |
929 |
[% IF adjust_history %] |
935 |
[% IF adjust_history %] |
930 |
- |
|
|