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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt (-1 / +1 lines)
Lines 283-289 Link Here
283
        }
283
        }
284
284
285
        $(document).ready(function() {
285
        $(document).ready(function() {
286
            columns_settings = [% TablesSettings.GetColumns( 'admin', 'currency', 'currencies-table', 'json' ) | $raw %]
286
            columns_settings = [% TablesSettings.GetTableSettings( 'admin', 'currency', 'currencies-table', 'json' ) | $raw %]
287
            var issuest = KohaTable("currencies-table", {
287
            var issuest = KohaTable("currencies-table", {
288
                dom: 'B<"clearfix">t',
288
                dom: 'B<"clearfix">t',
289
            }, columns_settings );
289
            }, columns_settings );
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt (-2 / +2 lines)
Lines 314-323 Link Here
314
                $("#dataPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface | html %]/[% theme | html %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
314
                $("#dataPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface | html %]/[% theme | html %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
315
            });
315
            });
316
316
317
            columns_settings = [% TablesSettings.GetColumns( 'cataloguing', 'addbooks', 'reservoir-table', 'json' ) | $raw %]
317
            var table_settings = [% TablesSettings.GetTableSettings( 'cataloguing', 'addbooks', 'reservoir-table', 'json' ) | $raw %]
318
            var reservoirt = KohaTable("reservoir-table", {
318
            var reservoirt = KohaTable("reservoir-table", {
319
                "pagingType": "simple"
319
                "pagingType": "simple"
320
            }, columns_settings );
320
            }, table_settings );
321
        });
321
        });
322
322
323
        /* this function open a popup to search on z3950 server.  */
323
        /* this function open a popup to search on z3950 server.  */
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (-2 / +2 lines)
Lines 1039-1046 Link Here
1039
    [% Asset.js("js/holds.js") | $raw %]
1039
    [% Asset.js("js/holds.js") | $raw %]
1040
    [% INCLUDE 'calendar.inc' %]
1040
    [% INCLUDE 'calendar.inc' %]
1041
    <script>
1041
    <script>
1042
        columns_settings_issues_table = [% TablesSettings.GetColumns( 'circ', 'circulation', 'issues-table', 'json' ) | $raw %]
1042
        table_settings_issues_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'issues-table', 'json' ) | $raw %]
1043
        columns_settings_borrowers_table = [% TablesSettings.GetColumns( 'circ', 'circulation', 'table_borrowers', 'json' ) | $raw %]
1043
        table_settings_borrowers_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'table_borrowers', 'json' ) | $raw %]
1044
1044
1045
        [% IF borrowernumber and patron %]
1045
        [% IF borrowernumber and patron %]
1046
            if( Cookies.get("holdfor") != [% patron.borrowernumber | html %]){
1046
            if( Cookies.get("holdfor") != [% patron.borrowernumber | html %]){
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/waitingreserves.tt (-4 / +4 lines)
Lines 179-198 Link Here
179
    [% INCLUDE 'columns_settings.inc' %]
179
    [% INCLUDE 'columns_settings.inc' %]
180
    <script>
180
    <script>
181
        var MSG_CANCEL_SELECTED = _("Cancel selected (%s)");
181
        var MSG_CANCEL_SELECTED = _("Cancel selected (%s)");
182
        var holdst_columns_settings = [% TablesSettings.GetColumns( 'circ', 'holds_awaiting_pickup', 'holdst', 'json' ) | $raw %];
182
        var holdst_table_settings = [% TablesSettings.GetTableSettings( 'circ', 'holds_awaiting_pickup', 'holdst', 'json' ) | $raw %];
183
        var holdso_columns_settings = [% TablesSettings.GetColumns( 'circ', 'holds_awaiting_pickup', 'holdso', 'json' ) | $raw %];
183
        var holdso_table_settings = [% TablesSettings.GetTableSettings( 'circ', 'holds_awaiting_pickup', 'holdso', 'json' ) | $raw %];
184
184
185
        $(document).ready(function() {
185
        $(document).ready(function() {
186
186
187
            KohaTable("holdst", {
187
            KohaTable("holdst", {
188
                "sPaginationType": "full",
188
                "sPaginationType": "full",
189
                "order": [[1, 'asc']]
189
                "order": [[1, 'asc']]
190
            }, holdst_columns_settings);
190
            }, holdst_table_settings);
191
191
192
            KohaTable("holdso", {
192
            KohaTable("holdso", {
193
                "sPaginationType": "full",
193
                "sPaginationType": "full",
194
                "order": [[1, 'asc']]
194
                "order": [[1, 'asc']]
195
            }, holdso_columns_settings);
195
            }, holdso_table_settings);
196
196
197
            $('#resultlist').tabs();
197
            $('#resultlist').tabs();
198
198
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-print.tt (-3 / +3 lines)
Lines 210-218 Link Here
210
    [% INCLUDE 'datatables.inc' %]
210
    [% INCLUDE 'datatables.inc' %]
211
    [% INCLUDE 'columns_settings.inc' %]
211
    [% INCLUDE 'columns_settings.inc' %]
212
    <script>
212
    <script>
213
        var checkouts_columns = [% TablesSettings.GetColumns( 'circ', 'print_summary', 'print-summary-checkouts', 'json' ) | $raw %];
213
        var checkouts_columns = [% TablesSettings.GetTableSettings( 'circ', 'print_summary', 'print-summary-checkouts', 'json' ) | $raw %];
214
        var holds_columns = [% TablesSettings.GetColumns( 'circ', 'print_summary', 'print-summary-holds', 'json' ) | $raw %];
214
        var holds_columns = [% TablesSettings.GetTableSettings( 'circ', 'print_summary', 'print-summary-holds', 'json' ) | $raw %];
215
        var fines_columns = [% TablesSettings.GetColumns( 'circ', 'print_summary', 'print-summary-fines', 'json' ) | $raw %];
215
        var fines_columns = [% TablesSettings.GetTableSettings( 'circ', 'print_summary', 'print-summary-fines', 'json' ) | $raw %];
216
216
217
        function moveColumnsButton( tableId ){
217
        function moveColumnsButton( tableId ){
218
            /* Hide the export button */
218
            /* Hide the export button */
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (-1 / +1 lines)
Lines 871-877 Link Here
871
    [% Asset.js("js/recalls.js") | $raw %]
871
    [% Asset.js("js/recalls.js") | $raw %]
872
    <script>
872
    <script>
873
873
874
        columns_settings_issues_table = [% TablesSettings.GetColumns( 'members', 'moremember', 'issues-table', 'json' ) | $raw %]
874
        table_settings_issues_table = [% TablesSettings.GetTableSettings( 'members', 'moremember', 'issues-table', 'json' ) | $raw %]
875
875
876
        $(document).ready(function() {
876
        $(document).ready(function() {
877
            $("#info_digests").tooltip();
877
            $("#info_digests").tooltip();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt (-2 / +2 lines)
Lines 356-367 Link Here
356
                sale_table.DataTable().row($(this).parents('tr')).remove().draw(false);
356
                sale_table.DataTable().row($(this).parents('tr')).remove().draw(false);
357
        });
357
        });
358
358
359
        var items_columns_settings = [% TablesSettings.GetColumns('pos', 'pay', 'invoices', 'json') | $raw %];
359
        var items_table_settings = [% TablesSettings.GetTableSettings('pos', 'pay', 'invoices', 'json') | $raw %];
360
        var items_table = KohaTable("invoices", {
360
        var items_table = KohaTable("invoices", {
361
               "sPaginationType": "full",
361
               "sPaginationType": "full",
362
               "aaSorting": [[ 0, "asc" ]],
362
               "aaSorting": [[ 0, "asc" ]],
363
               "autoWidth": false
363
               "autoWidth": false
364
        }, items_columns_settings, false);
364
        }, items_table_settings, false);
365
365
366
        $("#invoices").on("click", ".add_button", function(e) {
366
        $("#invoices").on("click", ".add_button", function(e) {
367
            e.preventDefault();
367
            e.preventDefault();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt (-2 / +2 lines)
Lines 1305-1317 Link Here
1305
            $(document).ready(function() {
1305
            $(document).ready(function() {
1306
                $('#suggestiontabs').tabs();
1306
                $('#suggestiontabs').tabs();
1307
1307
1308
                columns_settings = [% TablesSettings.GetColumns( 'acqui', 'suggestions', 'suggestions', 'json' ) | $raw %]
1308
                table_settings = [% TablesSettings.GetTableSettings( 'acqui', 'suggestions', 'suggestions', 'json' ) | $raw %]
1309
                [% FOREACH suggestion IN suggestions %]
1309
                [% FOREACH suggestion IN suggestions %]
1310
                    [% IF ( suggestion.suggestions_loop ) %]
1310
                    [% IF ( suggestion.suggestions_loop ) %]
1311
                        KohaTable("table_[% loop.count| html %]", {
1311
                        KohaTable("table_[% loop.count| html %]", {
1312
                            "sorting": [[ 3, "asc" ]],
1312
                            "sorting": [[ 3, "asc" ]],
1313
                            "autoWidth": false,
1313
                            "autoWidth": false,
1314
                        }, columns_settings );
1314
                        }, table_settings );
1315
                    [% END %]
1315
                    [% END %]
1316
                [% END %]
1316
                [% END %]
1317
1317
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt (-1 / +1 lines)
Lines 359-365 Link Here
359
    [% INCLUDE 'datatables.inc' %]
359
    [% INCLUDE 'datatables.inc' %]
360
    [% INCLUDE 'columns_settings.inc' %]
360
    [% INCLUDE 'columns_settings.inc' %]
361
    <script>
361
    <script>
362
        columns_settings = [% TablesSettings.GetColumns('tools', 'marc-modification-templates', 'templatest', 'json') | $raw %];
362
        table_settings = [% TablesSettings.GetTableSettings('tools', 'marc-modification-templates', 'templatest', 'json') | $raw %];
363
        [% IF ActionsLoop %]
363
        [% IF ActionsLoop %]
364
            var mmtas = [% ActionsLoop.json | $raw %]
364
            var mmtas = [% ActionsLoop.json | $raw %]
365
        [% END %]
365
        [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt (-1 / +1 lines)
Lines 391-397 Link Here
391
    <script>
391
    <script>
392
        var patron_attributes_lib = new Array();
392
        var patron_attributes_lib = new Array();
393
        var patron_attributes_values = new Array();
393
        var patron_attributes_values = new Array();
394
        var table_settings = [% TablesSettings.GetColumns( 'tools', 'batch_patron_modification', 'borrowerst', 'json' ) | $raw %];
394
        var table_settings = [% TablesSettings.GetTableSettings( 'tools', 'batch_patron_modification', 'borrowerst', 'json' ) | $raw %];
395
        [% FOREACH attrh IN attributes_header %]
395
        [% FOREACH attrh IN attributes_header %]
396
            table_settings.push({
396
            table_settings.push({
397
                columname: "[% attrh.attribute | html %]",
397
                columname: "[% attrh.attribute | html %]",
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stockrotation.tt (-2 / +2 lines)
Lines 615-622 Link Here
615
    [% INCLUDE 'columns_settings.inc' %]
615
    [% INCLUDE 'columns_settings.inc' %]
616
    [% Asset.js("js/pages/stockrotation.js") | $raw %]
616
    [% Asset.js("js/pages/stockrotation.js") | $raw %]
617
    <script>
617
    <script>
618
        var stock_rotation_items_columns_settings = [% TablesSettings.GetColumns( 'tools', 'stockrotation', 'stock_rotation_manage_items', 'json' ) | $raw %];
618
        var stock_rotation_items_table_settings = [% TablesSettings.GetTableSettings( 'tools', 'stockrotation', 'stock_rotation_manage_items', 'json' ) | $raw %];
619
        var stock_rotation_columns_settings = [% TablesSettings.GetColumns( 'tools', 'stockrotation', 'stock_rotation', 'json' ) | $raw %];
619
        var stock_rotation_table_settings = [% TablesSettings.GetTableSettings( 'tools', 'stockrotation', 'stock_rotation', 'json' ) | $raw %];
620
        $("#addStageModal, #addItemsModal").on("shown.bs.modal", function(){
620
        $("#addStageModal, #addItemsModal").on("shown.bs.modal", function(){
621
            $("#branch, #barcode").focus();
621
            $("#branch, #barcode").focus();
622
        });
622
        });
(-)a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js (-1 / +1 lines)
Lines 693-699 $(document).ready(function() { Link Here
693
                    .append(ul)
693
                    .append(ul)
694
                    .insertBefore(oSettings.nTableWrapper)
694
                    .insertBefore(oSettings.nTableWrapper)
695
            },
695
            },
696
        }, columns_settings_issues_table);
696
        }, table_settings_issues_table);
697
697
698
        if ( $("#issues-table").length ) {
698
        if ( $("#issues-table").length ) {
699
            $("#issues-table_processing").position({
699
            $("#issues-table_processing").position({
(-)a/koha-tmpl/intranet-tmpl/prog/js/marc_modification_templates.js (-2 / +2 lines)
Lines 1-4 Link Here
1
/* global __ KohaTable columns_settings */
1
/* global __ KohaTable table_settings */
2
$(document).ready(function() {
2
$(document).ready(function() {
3
    window.modaction_legend_innerhtml = $("#modaction_legend").text();
3
    window.modaction_legend_innerhtml = $("#modaction_legend").text();
4
    window.action_submit_value = $("#action_submit").val();
4
    window.action_submit_value = $("#action_submit").val();
Lines 110-116 $(document).ready(function() { Link Here
110
    });
110
    });
111
111
112
    KohaTable("templatest", {
112
    KohaTable("templatest", {
113
    }, columns_settings);
113
    }, table_settings);
114
114
115
});
115
});
116
116
(-)a/koha-tmpl/intranet-tmpl/prog/js/pages/stockrotation.js (-3 / +2 lines)
Lines 72-78 $(document).ready(function() { Link Here
72
        ],
72
        ],
73
        "sPaginationType": "full",
73
        "sPaginationType": "full",
74
        "autoWidth": false,
74
        "autoWidth": false,
75
    }, stock_rotation_items_columns_settings);
75
    }, stock_rotation_items_table_settings);
76
76
77
    KohaTable("stock_rotation", {
77
    KohaTable("stock_rotation", {
78
        "aoColumnDefs": [
78
        "aoColumnDefs": [
Lines 81-86 $(document).ready(function() { Link Here
81
        ],
81
        ],
82
        "sPaginationType": "full",
82
        "sPaginationType": "full",
83
        "autoWidth": false,
83
        "autoWidth": false,
84
    }, stock_rotation_columns_settings);
84
    }, stock_rotation_table_settings);
85
85
86
});
86
});
87
- 

Return to bug 29648