|
13 | 13 | className: 'buttons-excel',
|
14 | 14 |
|
15 | 15 | text: function (dt) {
|
16 |
| - return dt.i18n('buttons.excel', 'Excel'); |
| 16 | + return '<i class="fa fa-file-excel-o"></i> ' + dt.i18n('buttons.excel', 'Excel'); |
17 | 17 | },
|
18 | 18 |
|
19 | 19 | action: function (e, dt, button, config) {
|
|
26 | 26 | className: 'buttons-csv',
|
27 | 27 |
|
28 | 28 | text: function (dt) {
|
29 |
| - return dt.i18n('buttons.csv', 'CSV'); |
| 29 | + return '<i class="fa fa-file-excel-o"></i> ' + dt.i18n('buttons.csv', 'CSV'); |
30 | 30 | },
|
31 | 31 |
|
32 | 32 | action: function (e, dt, button, config) {
|
|
39 | 39 | className: 'buttons-pdf',
|
40 | 40 |
|
41 | 41 | text: function (dt) {
|
42 |
| - return dt.i18n('buttons.pdf', 'PDF'); |
| 42 | + return '<i class="fa fa-file-pdf-o"></i> ' + dt.i18n('buttons.pdf', 'PDF'); |
43 | 43 | },
|
44 | 44 |
|
45 | 45 | action: function (e, dt, button, config) {
|
|
52 | 52 | className: 'buttons-print',
|
53 | 53 |
|
54 | 54 | text: function (dt) {
|
55 |
| - return dt.i18n('buttons.print', 'Print'); |
| 55 | + return '<i class="fa fa-print"></i> ' + dt.i18n('buttons.print', 'Print'); |
56 | 56 | },
|
57 | 57 |
|
58 | 58 | action: function (e, dt, button, config) {
|
|
65 | 65 | className: 'buttons-reset',
|
66 | 66 |
|
67 | 67 | text: function (dt) {
|
68 |
| - return dt.i18n('buttons.reset', 'Reset'); |
| 68 | + return '<i class="fa fa-undo"></i> ' + dt.i18n('buttons.reset', 'Reset'); |
69 | 69 | },
|
70 | 70 |
|
71 | 71 | action: function (e, dt, button, config) {
|
|
77 | 77 | className: 'buttons-reload',
|
78 | 78 |
|
79 | 79 | text: function (dt) {
|
80 |
| - return dt.i18n('buttons.reload', 'Reload'); |
| 80 | + return '<i class="fa fa-refresh"></i> ' + dt.i18n('buttons.reload', 'Reload'); |
81 | 81 | },
|
82 | 82 |
|
83 | 83 | action: function (e, dt, button, config) {
|
|
89 | 89 | className: 'buttons-create',
|
90 | 90 |
|
91 | 91 | text: function (dt) {
|
92 |
| - return dt.i18n('buttons.create', 'Create'); |
| 92 | + return '<i class="fa fa-plus"></i> ' + dt.i18n('buttons.create', 'Create'); |
93 | 93 | },
|
94 | 94 |
|
95 | 95 | action: function (e, dt, button, config) {
|
96 | 96 | window.location = window.location.href.replace(/\/+$/, "") + '/create';
|
97 | 97 | }
|
98 | 98 | };
|
99 |
| - |
100 |
| - |
101 | 99 | })(jQuery, jQuery.fn.dataTable);
|
0 commit comments