forked from extern/egroupware
Unbind events after widget gets cleared from DOM to avoid calling events like onchange for second time (eg. infolog projectmanager selection)
This commit is contained in:
parent
331f475ded
commit
8105090e39
@ -590,6 +590,13 @@ var et2_link_entry = (function(){ "use strict"; return et2_inputWidget.extend(
|
|||||||
this.request = null;
|
this.request = null;
|
||||||
|
|
||||||
this.createInputWidget();
|
this.createInputWidget();
|
||||||
|
var self = this;
|
||||||
|
|
||||||
|
jQuery(this.getInstanceManager().DOMContainer).on('clear', function(){
|
||||||
|
// We need to unbind events to prevent a second triggerd event handler
|
||||||
|
// (eg. setting a project in infolog edit dialog) when the widget gets cleared.
|
||||||
|
jQuery(self.getDOMNode()).off();
|
||||||
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
destroy: function() {
|
destroy: function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user