From 12ccbd48b99ae64fc4bee0c25ef9ee6e2ea0e57a Mon Sep 17 00:00:00 2001 From: Benjamin Dalsass <95754414+bdalsass@users.noreply.github.com> Date: Mon, 3 Jun 2024 15:48:42 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B07467=20-=20Fix=20column=20selection=20br?= =?UTF-8?q?oken=20in=20CSV=20export?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/tabularfieldsselector.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/js/tabularfieldsselector.js b/js/tabularfieldsselector.js index 422da1a20..907ab02a5 100644 --- a/js/tabularfieldsselector.js +++ b/js/tabularfieldsselector.js @@ -252,7 +252,7 @@ $(function () { for (var k in this.aSelected) { var sField = this.aSelected[k]; if ($.inArray(sField, this.aSelected) != -1) { - var sRemoveBtn = ''; + var sRemoveBtn = ''; sHtml += ''+this.aFieldsByCode[sField].unique_label+''+sRemoveBtn+''; } } @@ -345,12 +345,13 @@ $(function () { }, // events bound via _bind are removed automatically // revert other modifications here - destroy: function () { + _destroy: function () { this.element .removeClass('itop-tabularfieldsselector'); - this.element.parent().off('activate'); 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: function () {