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 181-192 Link Here
181
    [% INCLUDE 'datatables.inc' %]
181
    [% INCLUDE 'datatables.inc' %]
182
    [% Asset.js("lib/jquery/plugins/treetable/jquery.treetable.js") | $raw %]
182
    [% Asset.js("lib/jquery/plugins/treetable/jquery.treetable.js") | $raw %]
183
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
183
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
184
    [% INCLUDE 'columns_settings.inc' %]
184
    <script>
185
    <script>
185
        dt_overwrite_html_sorting_localeCompare();
186
        dt_overwrite_html_sorting_localeCompare();
186
187
187
        $(document).ready(function() {
188
        $(document).ready(function() {
188
189
189
            var oTable = $("#accounts").dataTable($.extend(true, {}, dataTablesDefaults, {
190
            var oTable = KohaTable("accounts", {
190
                "fnDrawCallback": function ( oSettings ) {
191
                "fnDrawCallback": function ( oSettings ) {
191
                    if ( oSettings.aiDisplay.length == 0 )
192
                    if ( oSettings.aiDisplay.length == 0 )
192
                    {
193
                    {
Lines 221-232 Link Here
221
                    { "bVisible": false, "aTargets": [ 0, 1 ] },
222
                    { "bVisible": false, "aTargets": [ 0, 1 ] },
222
                    { "bSortable": false, "aTargets": ["_all"] }
223
                    { "bSortable": false, "aTargets": ["_all"] }
223
                ],
224
                ],
224
                'dom': '<"top pager"ilpf>tr<"bottom pager"ip>',
225
                'bSort': true,
225
                'bSort': true,
226
                'aaSortingFixed': [[ 1, 'asc' ]],
226
                'aaSortingFixed': [[ 1, 'asc' ]],
227
                'bPaginate': false,
227
                'bPaginate': false,
228
                "bAutoWidth": false
228
                "bAutoWidth": false
229
            }));
229
            });
230
230
231
            $(oTable).treetable({
231
            $(oTable).treetable({
232
                expandable: true
232
                expandable: true
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt (-4 / +3 lines)
Lines 593-598 Link Here
593
        </script>
593
        </script>
594
    [% ELSIF op == 'list' %]
594
    [% ELSIF op == 'list' %]
595
        [% INCLUDE 'datatables.inc' %]
595
        [% INCLUDE 'datatables.inc' %]
596
        [% INCLUDE 'columns_settings.inc' %]
596
        [% Asset.js("lib/jquery/plugins/treetable/jquery.treetable.js") | $raw %]
597
        [% Asset.js("lib/jquery/plugins/treetable/jquery.treetable.js") | $raw %]
597
598
598
        <script>
599
        <script>
Lines 600-606 Link Here
600
            //
601
            //
601
            $(document).ready(function() {
602
            $(document).ready(function() {
602
                [% IF budgets %]
603
                [% IF budgets %]
603
                    var oTable = $("#budgeth").dataTable($.extend(true, {}, dataTablesDefaults, {
604
                    var oTable = KohaTable("budgeth", {
604
                        "fnDrawCallback": function ( oSettings ) {
605
                        "fnDrawCallback": function ( oSettings ) {
605
                            if ( oSettings.aiDisplay.length == 0 )
606
                            if ( oSettings.aiDisplay.length == 0 )
606
                            {
607
                            {
Lines 635-646 Link Here
635
                            { "bVisible": false, "aTargets": [ 0, 1 ] },
636
                            { "bVisible": false, "aTargets": [ 0, 1 ] },
636
                            { "bSortable": false, "aTargets": ["_all"] }
637
                            { "bSortable": false, "aTargets": ["_all"] }
637
                        ],
638
                        ],
638
                        'dom': '<"top pager"ilpf>tr<"bottom pager"ip>',
639
                        'bSort': true,
639
                        'bSort': true,
640
                        'aaSortingFixed': [[ 1, 'asc' ]],
640
                        'aaSortingFixed': [[ 1, 'asc' ]],
641
                        'bPaginate': false,
641
                        'bPaginate': false,
642
                        "bAutoWidth": false
642
                        "bAutoWidth": false
643
                    }));
643
                    });
644
644
645
                    $(oTable).treetable({
645
                    $(oTable).treetable({
646
                        expandable: true
646
                        expandable: true
647
- 

Return to bug 27646