|
Lines 70-86
function KohaTable(id_selector, dt_parameters, columns_settings, add_filters) {
Link Here
|
| 70 |
node.addClass("disabled"); |
70 |
node.addClass("disabled"); |
| 71 |
} |
71 |
} |
| 72 |
}, |
72 |
}, |
| 73 |
{ |
73 |
]; |
| 74 |
extend: 'colvis', |
74 |
|
| 75 |
fade: 100, |
75 |
if( included_ids.length > 0 ){ |
| 76 |
columns: included_ids, |
76 |
dt_parameters[ "buttons" ].push( |
| 77 |
className: "columns_controls", |
77 |
{ |
| 78 |
titleAttr: _("Columns settings"), |
78 |
extend: 'colvis', |
| 79 |
text: '<i class="fa fa-lg fa-gear"></i> <span class="dt-button-text">' + _("Columns") + '</span>', |
79 |
fade: 100, |
| 80 |
exportOptions: { |
80 |
columns: included_ids, |
| 81 |
columns: exportColumns |
81 |
className: "columns_controls", |
|
|
82 |
titleAttr: _("Columns settings"), |
| 83 |
text: '<i class="fa fa-lg fa-gear"></i> <span class="dt-button-text">' + _("Columns") + '</span>', |
| 84 |
exportOptions: { |
| 85 |
columns: exportColumns |
| 86 |
}, |
| 82 |
}, |
87 |
}, |
| 83 |
}, |
88 |
); |
|
|
89 |
} |
| 90 |
|
| 91 |
dt_parameters[ "buttons" ].push( |
| 84 |
{ |
92 |
{ |
| 85 |
extend: 'collection', |
93 |
extend: 'collection', |
| 86 |
autoClose: true, |
94 |
autoClose: true, |
|
Lines 90-97
function KohaTable(id_selector, dt_parameters, columns_settings, add_filters) {
Link Here
|
| 90 |
text: '<i class="fa fa-lg fa-download"></i> <span class="dt-button-text">' + _("Export") + '</span>', |
98 |
text: '<i class="fa fa-lg fa-download"></i> <span class="dt-button-text">' + _("Export") + '</span>', |
| 91 |
buttons: export_buttons |
99 |
buttons: export_buttons |
| 92 |
} |
100 |
} |
| 93 |
|
101 |
); |
| 94 |
]; |
|
|
| 95 |
|
102 |
|
| 96 |
var table = $(selector); |
103 |
var table = $(selector); |
| 97 |
if ( add_filters ) { |
104 |
if ( add_filters ) { |
| 98 |
- |
|
|