mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-26 12:51:38 +02:00
Prevent creating multiple sub-widgets if doLoadingFinished() is called more than once (eg in nextmatch header)
This commit is contained in:
parent
4002907c05
commit
d271990b84
@ -165,6 +165,11 @@ var et2_link_to = et2_inputWidget.extend(
|
|||||||
this._super.apply(this, arguments);
|
this._super.apply(this, arguments);
|
||||||
|
|
||||||
var self = this;
|
var self = this;
|
||||||
|
if(this.link_entry && this.vfs_select && this.file_upload)
|
||||||
|
{
|
||||||
|
// Already done
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// Link-to
|
// Link-to
|
||||||
var link_entry_attrs = {
|
var link_entry_attrs = {
|
||||||
@ -1457,6 +1462,11 @@ var et2_link_add = et2_inputWidget.extend(
|
|||||||
},
|
},
|
||||||
doLoadingFinished: function() {
|
doLoadingFinished: function() {
|
||||||
this._super.apply(this, arguments);
|
this._super.apply(this, arguments);
|
||||||
|
if(this.app_select && this.button)
|
||||||
|
{
|
||||||
|
// Already done
|
||||||
|
return false;
|
||||||
|
}
|
||||||
this.app_select = et2_createWidget("link-apps", jQuery.extend({},this.options,{'id': this.options.id + 'app'}) ,this);
|
this.app_select = et2_createWidget("link-apps", jQuery.extend({},this.options,{'id': this.options.id + 'app'}) ,this);
|
||||||
this.div.append(this.app_select.getDOMNode());
|
this.div.append(this.app_select.getDOMNode());
|
||||||
this.button = et2_createWidget("button", {label: this.egw().lang("add")}, this);
|
this.button = et2_createWidget("button", {label: this.egw().lang("add")}, this);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user