forked from extern/egroupware
fixed id check, causig it not to use options given for id=0
This commit is contained in:
parent
410abc5fb7
commit
85a198d9e6
@ -268,7 +268,7 @@ var et2_tree = et2_inputWidget.extend(
|
||||
options = data;
|
||||
}
|
||||
// if no options given, but autoloading url, use that to load initial nodes
|
||||
if (!options.id && this.input.XMLsource)
|
||||
if (typeof options.id == 'undefined' && this.input.XMLsource)
|
||||
this.input.loadJSON(this.input.XMLsource);
|
||||
else
|
||||
this.input.loadJSONObject(options);
|
||||
|
Loading…
Reference in New Issue
Block a user