mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-31 19:19:43 +01:00
Make sure link_entry & file_upload are still present before trying to destroy them.
Fixes hidden error when calling etemplate2.clear() with read-only link widgets.
This commit is contained in:
parent
af157c3218
commit
a0c38411e9
@ -96,10 +96,16 @@ var et2_link_to = et2_inputWidget.extend(
|
|||||||
this.link_button = null;
|
this.link_button = null;
|
||||||
this.status_span = null;
|
this.status_span = null;
|
||||||
|
|
||||||
this.link_entry.destroy();
|
if(this.link_entry)
|
||||||
this.link_entry = null;
|
{
|
||||||
this.file_upload.destroy();
|
this.link_entry.destroy();
|
||||||
this.file_upload = null;
|
this.link_entry = null;
|
||||||
|
}
|
||||||
|
if(this.file_upload)
|
||||||
|
{
|
||||||
|
this.file_upload.destroy();
|
||||||
|
this.file_upload = null;
|
||||||
|
}
|
||||||
this.div = null;
|
this.div = null;
|
||||||
|
|
||||||
this._super.apply(this, arguments);
|
this._super.apply(this, arguments);
|
||||||
|
Loading…
Reference in New Issue
Block a user