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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt (-3 / +3 lines)
Lines 197-208 Link Here
197
    [% INCLUDE 'datatables.inc' %]
197
    [% INCLUDE 'datatables.inc' %]
198
    [% Asset.js("lib/jquery/plugins/treetable/jquery.treetable.js") | $raw %]
198
    [% Asset.js("lib/jquery/plugins/treetable/jquery.treetable.js") | $raw %]
199
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
199
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
200
    [% INCLUDE 'columns_settings.inc' %]
200
    <script>
201
    <script>
201
        dt_overwrite_html_sorting_localeCompare();
202
        dt_overwrite_html_sorting_localeCompare();
202
203
203
        $(document).ready(function() {
204
        $(document).ready(function() {
204
205
205
            var oTable = $("#accounts").dataTable($.extend(true, {}, dataTablesDefaults, {
206
            var oTable = KohaTable("accounts", {
206
                "fnDrawCallback": function ( oSettings ) {
207
                "fnDrawCallback": function ( oSettings ) {
207
                    if ( oSettings.aiDisplay.length == 0 )
208
                    if ( oSettings.aiDisplay.length == 0 )
208
                    {
209
                    {
Lines 237-248 Link Here
237
                    { "bVisible": false, "aTargets": [ 0, 1 ] },
238
                    { "bVisible": false, "aTargets": [ 0, 1 ] },
238
                    { "bSortable": false, "aTargets": ["_all"] }
239
                    { "bSortable": false, "aTargets": ["_all"] }
239
                ],
240
                ],
240
                'dom': '<"top pager"ilpf>tr<"bottom pager"ip>',
241
                'bSort': true,
241
                'bSort': true,
242
                'aaSortingFixed': [[ 1, 'asc' ]],
242
                'aaSortingFixed': [[ 1, 'asc' ]],
243
                'bPaginate': false,
243
                'bPaginate': false,
244
                "bAutoWidth": false
244
                "bAutoWidth": false
245
            }));
245
            });
246
246
247
            $(oTable).treetable({
247
            $(oTable).treetable({
248
                expandable: true
248
                expandable: true
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt (-4 / +3 lines)
Lines 607-612 Link Here
607
        </script>
607
        </script>
608
    [% ELSIF op == 'list' %]
608
    [% ELSIF op == 'list' %]
609
        [% INCLUDE 'datatables.inc' %]
609
        [% INCLUDE 'datatables.inc' %]
610
        [% INCLUDE 'columns_settings.inc' %]
610
        [% Asset.js("lib/jquery/plugins/treetable/jquery.treetable.js") | $raw %]
611
        [% Asset.js("lib/jquery/plugins/treetable/jquery.treetable.js") | $raw %]
611
612
612
        <script>
613
        <script>
Lines 614-620 Link Here
614
            //
615
            //
615
            $(document).ready(function() {
616
            $(document).ready(function() {
616
                [% IF budgets %]
617
                [% IF budgets %]
617
                    var oTable = $("#budgeth").dataTable($.extend(true, {}, dataTablesDefaults, {
618
                    var oTable = KohaTable("budgeth", {
618
                        "fnDrawCallback": function ( oSettings ) {
619
                        "fnDrawCallback": function ( oSettings ) {
619
                            if ( oSettings.aiDisplay.length == 0 )
620
                            if ( oSettings.aiDisplay.length == 0 )
620
                            {
621
                            {
Lines 649-660 Link Here
649
                            { "bVisible": false, "aTargets": [ 0, 1 ] },
650
                            { "bVisible": false, "aTargets": [ 0, 1 ] },
650
                            { "bSortable": false, "aTargets": ["_all"] }
651
                            { "bSortable": false, "aTargets": ["_all"] }
651
                        ],
652
                        ],
652
                        'dom': '<"top pager"ilpf>tr<"bottom pager"ip>',
653
                        'bSort': true,
653
                        'bSort': true,
654
                        'aaSortingFixed': [[ 1, 'asc' ]],
654
                        'aaSortingFixed': [[ 1, 'asc' ]],
655
                        'bPaginate': false,
655
                        'bPaginate': false,
656
                        "bAutoWidth": false
656
                        "bAutoWidth": false
657
                    }));
657
                    });
658
658
659
                    $(oTable).treetable({
659
                    $(oTable).treetable({
660
                        expandable: true
660
                        expandable: true
661
- 

Return to bug 27646