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

(-)a/koha-tmpl/intranet-tmpl/prog/js/datatables.js (-12 / +11 lines)
Lines 522-528 jQuery.fn.dataTable.ext.errMode = function(settings, note, message) { Link Here
522
                        'pagingType': 'full_numbers',
522
                        'pagingType': 'full_numbers',
523
                        'processing': true,
523
                        'processing': true,
524
                        'language': {
524
                        'language': {
525
                            'emptyTable': (options.emptyTable) ? options.emptyTable : __("No data available in table")
525
                            'emptyTable': (options.emptyTable) ? options.emptyTable : _("No data available in table")
526
                        },
526
                        },
527
                        'ajax': {
527
                        'ajax': {
528
                            'type': 'GET',
528
                            'type': 'GET',
Lines 637-643 jQuery.fn.dataTable.ext.errMode = function(settings, note, message) { Link Here
637
        var export_buttons = [
637
        var export_buttons = [
638
            {
638
            {
639
                extend: 'excelHtml5',
639
                extend: 'excelHtml5',
640
                text: __("Excel"),
640
                text: _("Excel"),
641
                exportOptions: {
641
                exportOptions: {
642
                    columns: exportColumns,
642
                    columns: exportColumns,
643
                    format:  export_format
643
                    format:  export_format
Lines 645-651 jQuery.fn.dataTable.ext.errMode = function(settings, note, message) { Link Here
645
            },
645
            },
646
            {
646
            {
647
                extend: 'csvHtml5',
647
                extend: 'csvHtml5',
648
                text: __("CSV"),
648
                text: _("CSV"),
649
                exportOptions: {
649
                exportOptions: {
650
                    columns: exportColumns,
650
                    columns: exportColumns,
651
                    format:  export_format
651
                    format:  export_format
Lines 653-659 jQuery.fn.dataTable.ext.errMode = function(settings, note, message) { Link Here
653
            },
653
            },
654
            {
654
            {
655
                extend: 'copyHtml5',
655
                extend: 'copyHtml5',
656
                text: __("Copy"),
656
                text: _("Copy"),
657
                exportOptions: {
657
                exportOptions: {
658
                    columns: exportColumns,
658
                    columns: exportColumns,
659
                    format:  export_format
659
                    format:  export_format
Lines 661-667 jQuery.fn.dataTable.ext.errMode = function(settings, note, message) { Link Here
661
            },
661
            },
662
            {
662
            {
663
                extend: 'print',
663
                extend: 'print',
664
                text: __("Print"),
664
                text: _("Print"),
665
                exportOptions: {
665
                exportOptions: {
666
                    columns: exportColumns,
666
                    columns: exportColumns,
667
                    format:  export_format
667
                    format:  export_format
Lines 673-681 jQuery.fn.dataTable.ext.errMode = function(settings, note, message) { Link Here
673
            {
673
            {
674
                fade: 100,
674
                fade: 100,
675
                className: "dt_button_clear_filter",
675
                className: "dt_button_clear_filter",
676
                titleAttr: __("Clear filter"),
676
                titleAttr: _("Clear filter"),
677
                enabled: false,
677
                enabled: false,
678
                text: '<i class="fa fa-lg fa-remove"></i> <span class="dt-button-text">' + __("Clear filter") + '</span>',
678
                text: '<i class="fa fa-lg fa-remove"></i> <span class="dt-button-text">' + _("Clear filter") + '</span>',
679
                action: function ( e, dt, node, config ) {
679
                action: function ( e, dt, node, config ) {
680
                    dt.search( "" ).draw("page");
680
                    dt.search( "" ).draw("page");
681
                    node.addClass("disabled");
681
                    node.addClass("disabled");
Lines 690-697 jQuery.fn.dataTable.ext.errMode = function(settings, note, message) { Link Here
690
                    fade: 100,
690
                    fade: 100,
691
                    columns: included_ids,
691
                    columns: included_ids,
692
                    className: "columns_controls",
692
                    className: "columns_controls",
693
                    titleAttr: __("Columns settings"),
693
                    titleAttr: _("Columns settings"),
694
                    text: '<i class="fa fa-lg fa-gear"></i> <span class="dt-button-text">' + __("Columns") + '</span>',
694
                    text: '<i class="fa fa-lg fa-gear"></i> <span class="dt-button-text">' + _("Columns") + '</span>',
695
                    exportOptions: {
695
                    exportOptions: {
696
                        columns: exportColumns
696
                        columns: exportColumns
697
                    }
697
                    }
Lines 705-712 jQuery.fn.dataTable.ext.errMode = function(settings, note, message) { Link Here
705
                autoClose: true,
705
                autoClose: true,
706
                fade: 100,
706
                fade: 100,
707
                className: "export_controls",
707
                className: "export_controls",
708
                titleAttr: __("Export or print"),
708
                titleAttr: _("Export or print"),
709
                text: '<i class="fa fa-lg fa-download"></i> <span class="dt-button-text">' + __("Export") + '</span>',
709
                text: '<i class="fa fa-lg fa-download"></i> <span class="dt-button-text">' + _("Export") + '</span>',
710
                buttons: export_buttons
710
                buttons: export_buttons
711
            }
711
            }
712
        );
712
        );
713
- 

Return to bug 25909