|
Lines 871-876
Link Here
|
| 871 |
let table_dt = patrons_table.DataTable(); |
871 |
let table_dt = patrons_table.DataTable(); |
| 872 |
let loaded_from_state = table_dt.settings()[0].loaded_from_state; |
872 |
let loaded_from_state = table_dt.settings()[0].loaded_from_state; |
| 873 |
if ( !loaded_from_state ) { |
873 |
if ( !loaded_from_state ) { |
|
|
874 |
table_dt.search("").columns().search(""); |
| 874 |
[% FOR c IN columns %] |
875 |
[% FOR c IN columns %] |
| 875 |
[% SWITCH c %] |
876 |
[% SWITCH c %] |
| 876 |
[% CASE 'branch' %] |
877 |
[% CASE 'branch' %] |
|
Lines 883-890
Link Here
|
| 883 |
table_dt.column([% loop.count - 1 %]).search(category_id ? '^'+category_id+'$' : ''); |
884 |
table_dt.column([% loop.count - 1 %]).search(category_id ? '^'+category_id+'$' : ''); |
| 884 |
[% END %] |
885 |
[% END %] |
| 885 |
[% END %] |
886 |
[% END %] |
| 886 |
table_dt.search(""); |
|
|
| 887 |
} |
887 |
} |
|
|
888 |
table_dt.settings()[0].loaded_from_state = false; |
| 888 |
first_draw = 1; // Only redirect if we are coming from here |
889 |
first_draw = 1; // Only redirect if we are coming from here |
| 889 |
table_dt.draw(); |
890 |
table_dt.draw(); |
| 890 |
[% IF display_search_description %] |
891 |
[% IF display_search_description %] |
| 891 |
- |
|
|