mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-14 01:48:35 +01:00
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
747e0ecda1
commit
01a54413a2
@ -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