View | Details | Raw Unified | Return to bug 34356
Collapse All | Expand All

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

Return to bug 34356