Add a global ajax callback so the et2 widget can stay in sync with the dhtmlxtree

This commit is contained in:
Nathan Gray
2013-06-03 16:32:45 +00:00
parent 89f7ced72d
commit d5b289e894
2 changed files with 5 additions and 1 deletions

View File

@ -435,6 +435,7 @@ function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHand
* @topic: 0
*/
dhtmlXTreeObject.prototype.loadXML=function(file,afterCall){
afterCall = afterCall || this.AJAX_callback;
if (this._datamode && this._datamode!="xml") return this["load"+this._datamode.toUpperCase()](file,afterCall);
var that=this;
if (!this.parsCount) this.callEvent("onXLS",[that,this._ld_id]);
@ -3808,4 +3809,4 @@ dhtmlXTreeObject.prototype._dp_init=function(dp){
};
//(c)dhtmlx ltd. www.dhtmlx.com
//(c)dhtmlx ltd. www.dhtmlx.com