Lines 220-236
Link Here
|
220 |
}, columns_settings); |
220 |
}, columns_settings); |
221 |
} |
221 |
} |
222 |
|
222 |
|
223 |
var columns_settings = [% TablesSettings.GetColumns('catalogue', 'detail', 'checkoutshistory-table', 'json') %]; |
223 |
var old_checkouts_columns_settings = [% TablesSettings.GetColumns('catalogue', 'detail', 'old_checkouts-table', 'json') %]; |
|
|
224 |
var current_checkouts_columns_settings = [% TablesSettings.GetColumns('catalogue', 'detail', 'current_checkouts-table', 'json') %]; |
225 |
|
224 |
[% UNLESS show_patron_column %] |
226 |
[% UNLESS show_patron_column %] |
225 |
// Remove the patron column definition |
227 |
// Remove the patron column definition |
226 |
columns_settings.splice(0,1); |
228 |
old_checkouts_columns_settings.splice(0,1); |
|
|
229 |
current_checkouts_columns_settings.splice(0,1); |
227 |
[% END %] |
230 |
[% END %] |
228 |
|
231 |
|
229 |
var show_patron_column = [% IF show_patron_column %]1[% ELSE %]0[% END %]; |
232 |
var show_patron_column = [% IF show_patron_column %]1[% ELSE %]0[% END %]; |
230 |
var default_sort_column = 3 + show_patron_column; |
233 |
var default_sort_column = 3 + show_patron_column; |
231 |
|
234 |
|
232 |
var old_checkouts = initialize_checkouts_table( '#old_checkouts', default_sort_column, true, columns_settings ); |
235 |
var old_checkouts = initialize_checkouts_table( '#old_checkouts', default_sort_column, true, old_checkouts_columns_settings ); |
233 |
var current_checkouts = initialize_checkouts_table( '#current_checkouts', default_sort_column, false, columns_settings.slice(0,-1) ); |
236 |
var current_checkouts = initialize_checkouts_table( '#current_checkouts', default_sort_column, false, current_checkouts_columns_settings ); |
234 |
}); |
237 |
}); |
235 |
</script> |
238 |
</script> |
236 |
[% END %] |
239 |
[% END %] |
237 |
- |
|
|