Lines 202-207
Link Here
|
202 |
[%# actions: list of buttons to display in the action column. Possible values are: 'select', 'add', 'edit', 'checkout' %] |
202 |
[%# actions: list of buttons to display in the action column. Possible values are: 'select', 'add', 'edit', 'checkout' %] |
203 |
[%# sticky_header and sticky_to: If we need a sticky header %] |
203 |
[%# sticky_header and sticky_to: If we need a sticky header %] |
204 |
[%# callback: name of the JS function that will be called when a patron is selected. Only work with action=select %] |
204 |
[%# callback: name of the JS function that will be called when a patron is selected. Only work with action=select %] |
|
|
205 |
[%# display_search_description: boolean, default off. Display the description of the search %] |
205 |
[% BLOCK patron_search_js %] |
206 |
[% BLOCK patron_search_js %] |
206 |
|
207 |
|
207 |
[% IF redirect_if_one_result && !redirect_url %] |
208 |
[% IF redirect_if_one_result && !redirect_url %] |
Lines 712-718
Link Here
|
712 |
table_dt.search(""); |
713 |
table_dt.search(""); |
713 |
first_draw = 1; // Only redirect if we are coming from here |
714 |
first_draw = 1; // Only redirect if we are coming from here |
714 |
table_dt.draw(); |
715 |
table_dt.draw(); |
715 |
update_search_description(); |
716 |
[% IF display_search_description %] |
|
|
717 |
update_search_description(); |
718 |
[% END %] |
716 |
return false; |
719 |
return false; |
717 |
} |
720 |
} |
718 |
|
721 |
|
Lines 726-732
Link Here
|
726 |
/* remove any search string added by firstletter search */ |
729 |
/* remove any search string added by firstletter search */ |
727 |
history.pushState( {}, null, window.location.href.split("?" )[0]); |
730 |
history.pushState( {}, null, window.location.href.split("?" )[0]); |
728 |
$("#[% table_id | html %]_search_results").hide(); |
731 |
$("#[% table_id | html %]_search_results").hide(); |
729 |
update_search_description(); |
732 |
[% IF display_search_description %] |
|
|
733 |
update_search_description(); |
734 |
[% END %] |
730 |
} |
735 |
} |
731 |
|
736 |
|
732 |
// User has clicked on a letter |
737 |
// User has clicked on a letter |
Lines 740-746
Link Here
|
740 |
} |
745 |
} |
741 |
|
746 |
|
742 |
patrons_table.DataTable().draw(); |
747 |
patrons_table.DataTable().draw(); |
743 |
update_search_description(); |
748 |
[% IF display_search_description %] |
|
|
749 |
update_search_description(); |
750 |
[% END %] |
744 |
} |
751 |
} |
745 |
|
752 |
|
746 |
// modify parent window owner element |
753 |
// modify parent window owner element |