|
Lines 163-177
Link Here
|
| 163 |
[% INCLUDE 'modals/checkout_renewals.inc' %] |
163 |
[% INCLUDE 'modals/checkout_renewals.inc' %] |
| 164 |
[% INCLUDE 'js-date-format.inc' %] |
164 |
[% INCLUDE 'js-date-format.inc' %] |
| 165 |
[% Asset.js("js/checkout_renewals_modal.js") | $raw %] |
165 |
[% Asset.js("js/checkout_renewals_modal.js") | $raw %] |
|
|
166 |
<script> |
| 167 |
// FIXME This cannot work without bKohaColumnsUseNames |
| 168 |
var column_sort = [% Koha.Preference('RecordStaffUserOnCheckout') ? 11 : 10 | html %]; |
| 169 |
|
| 170 |
var table_settings = [% TablesSettings.GetTableSettings('members', 'checkouthistory', 'checkouthistory-table', 'json') | $raw %]; |
| 171 |
</script> |
| 172 |
|
| 166 |
<script> |
173 |
<script> |
| 167 |
$(document).ready(function() { |
174 |
$(document).ready(function() { |
| 168 |
[% IF Koha.Preference('RecordStaffUserOnCheckout') %] |
|
|
| 169 |
// FIXME This cannot work without bKohaColumnsUseNames |
| 170 |
var column_sort = 11; |
| 171 |
[% ELSE %] |
| 172 |
var column_sort = 10; |
| 173 |
[% END %] |
| 174 |
var table_settings = [% TablesSettings.GetTableSettings('members', 'checkouthistory', 'checkouthistory-table', 'json') | $raw %]; |
| 175 |
var table = $("#table_readingrec").kohaTable( |
175 |
var table = $("#table_readingrec").kohaTable( |
| 176 |
{ |
176 |
{ |
| 177 |
pagingType: "full", |
177 |
pagingType: "full", |
| 178 |
- |
|
|