Lines 175-184
Link Here
|
175 |
[% Asset.js("js/checkout_renewals_modal.js") | $raw %] |
175 |
[% Asset.js("js/checkout_renewals_modal.js") | $raw %] |
176 |
<script id="js"> |
176 |
<script id="js"> |
177 |
$(document).ready(function() { |
177 |
$(document).ready(function() { |
|
|
178 |
[% IF Koha.Preference('RecordStaffUserOnCheckout') %] |
179 |
var column_sort = 11; |
180 |
[% ELSE %] |
181 |
var column_sort = 10; |
182 |
[% END %] |
178 |
var table_settings = [% TablesSettings.GetTableSettings('members', 'checkouthistory', 'checkouthistory-table', 'json') | $raw %]; |
183 |
var table_settings = [% TablesSettings.GetTableSettings('members', 'checkouthistory', 'checkouthistory-table', 'json') | $raw %]; |
179 |
var table = KohaTable("table_readingrec", { |
184 |
var table = KohaTable("table_readingrec", { |
180 |
"sPaginationType": "full", |
185 |
"sPaginationType": "full", |
181 |
"aaSorting": [[10, 'desc']] |
186 |
"aaSorting": [[column_sort, 'desc']] |
182 |
}, table_settings); |
187 |
}, table_settings); |
183 |
|
188 |
|
184 |
$("#tabs a[data-toggle='tab']").on("shown.bs.tab", function (e) { |
189 |
$("#tabs a[data-toggle='tab']").on("shown.bs.tab", function (e) { |
185 |
- |
|
|