Make sure autoloading sets values as they are loaded

This commit is contained in:
Nathan Gray 2015-12-08 00:26:08 +00:00
parent 864a5f2673
commit 967882240a

View File

@ -210,6 +210,11 @@ var et2_tree = et2_inputWidget.extend(
// Add in the callback so we can keep the two in sync
widget.input.AJAX_callback = function(dxmlObject) {
widget._dhtmlxtree_json_callback(JSON.parse(dxmlObject.xmlDoc.responseText), widget.input.lastLoadedXMLId);
// Call this in case we added some options that were already selected, but missing
if(widget.options.multiple)
{
widget.set_value(widget.value);
}
};
if (widget.options.autoloading)