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 720-726
Link Here
|
720 |
table_dt.search(""); |
721 |
table_dt.search(""); |
721 |
first_draw = 1; // Only redirect if we are coming from here |
722 |
first_draw = 1; // Only redirect if we are coming from here |
722 |
table_dt.draw(); |
723 |
table_dt.draw(); |
723 |
update_search_description(); |
724 |
[% IF display_search_description %] |
|
|
725 |
update_search_description(); |
726 |
[% END %] |
724 |
return false; |
727 |
return false; |
725 |
} |
728 |
} |
726 |
|
729 |
|
Lines 734-740
Link Here
|
734 |
/* remove any search string added by firstletter search */ |
737 |
/* remove any search string added by firstletter search */ |
735 |
history.pushState( {}, null, window.location.href.split("?" )[0]); |
738 |
history.pushState( {}, null, window.location.href.split("?" )[0]); |
736 |
$("#[% table_id | html %]_search_results").hide(); |
739 |
$("#[% table_id | html %]_search_results").hide(); |
737 |
update_search_description(); |
740 |
[% IF display_search_description %] |
|
|
741 |
update_search_description(); |
742 |
[% END %] |
738 |
} |
743 |
} |
739 |
|
744 |
|
740 |
// User has clicked on a letter |
745 |
// User has clicked on a letter |
Lines 748-754
Link Here
|
748 |
} |
753 |
} |
749 |
|
754 |
|
750 |
patrons_table.DataTable().draw(); |
755 |
patrons_table.DataTable().draw(); |
751 |
update_search_description(); |
756 |
[% IF display_search_description %] |
|
|
757 |
update_search_description(); |
758 |
[% END %] |
752 |
} |
759 |
} |
753 |
|
760 |
|
754 |
// modify parent window owner element |
761 |
// modify parent window owner element |