fixed id check, causig it not to use options given for id=0

This commit is contained in:
Ralf Becker 2013-05-13 11:59:09 +00:00
parent 410abc5fb7
commit 85a198d9e6

View File

@ -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);