mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°7467 - Fix column selection broken in CSV export
This commit is contained in:
@@ -252,7 +252,7 @@ $(function () {
|
|||||||
for (var k in this.aSelected) {
|
for (var k in this.aSelected) {
|
||||||
var sField = this.aSelected[k];
|
var sField = this.aSelected[k];
|
||||||
if ($.inArray(sField, this.aSelected) != -1) {
|
if ($.inArray(sField, this.aSelected) != -1) {
|
||||||
var sRemoveBtn = '<span class="export-field-close ibo-table-preview--remove-column" data-attcode="'+sField+'"><span class="fas fa-times"></span></span>';
|
var sRemoveBtn = '<span class="export-field-close ibo-table-preview--remove-column" data-attcode="'+sField+'"><span class="fas fa-times"></span></span>';
|
||||||
sHtml += '<th data-attcode="'+sField+'"><span class="drag-handle">'+this.aFieldsByCode[sField].unique_label+'</span>'+sRemoveBtn+'</th>';
|
sHtml += '<th data-attcode="'+sField+'"><span class="drag-handle">'+this.aFieldsByCode[sField].unique_label+'</span>'+sRemoveBtn+'</th>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -345,12 +345,13 @@ $(function () {
|
|||||||
},
|
},
|
||||||
// events bound via _bind are removed automatically
|
// events bound via _bind are removed automatically
|
||||||
// revert other modifications here
|
// revert other modifications here
|
||||||
destroy: function () {
|
_destroy: function () {
|
||||||
this.element
|
this.element
|
||||||
.removeClass('itop-tabularfieldsselector');
|
.removeClass('itop-tabularfieldsselector');
|
||||||
|
|
||||||
this.element.parent().off('activate');
|
|
||||||
this.element.parent().off('validate');
|
this.element.parent().off('validate');
|
||||||
|
this.element.parent().off('form-part-activate');
|
||||||
|
$('body').off('click change', '.tfs_checkbox');
|
||||||
},
|
},
|
||||||
// _setOptions is called with a hash of all options that are changing
|
// _setOptions is called with a hash of all options that are changing
|
||||||
_setOptions: function () {
|
_setOptions: function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user