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 () {