mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 17:04:14 +01:00
Clear tree before setting options to avoid duplicates
This commit is contained in:
parent
5dc17cfbc7
commit
b0ef704c4b
@ -375,6 +375,7 @@ export class et2_tree extends et2_inputWidget
|
|||||||
f(data, f);
|
f(data, f);
|
||||||
options = data;
|
options = data;
|
||||||
}
|
}
|
||||||
|
this.input.deleteChildItems("0");
|
||||||
// if no options given, but autoloading url, use that to load initial nodes
|
// if no options given, but autoloading url, use that to load initial nodes
|
||||||
if (typeof options.id == 'undefined' && this.input.XMLsource)
|
if (typeof options.id == 'undefined' && this.input.XMLsource)
|
||||||
this.input.loadJSON(this.input.XMLsource);
|
this.input.loadJSON(this.input.XMLsource);
|
||||||
|
Loading…
Reference in New Issue
Block a user