mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-18 20:08:34 +01:00
Add a global ajax callback so the et2 widget can stay in sync with the dhtmlxtree
This commit is contained in:
parent
89f7ced72d
commit
d5b289e894
@ -171,6 +171,9 @@ var et2_tree = et2_inputWidget.extend(
|
|||||||
image_path: widget.options.image_path,
|
image_path: widget.options.image_path,
|
||||||
checkbox: widget.options.multiple,
|
checkbox: widget.options.multiple,
|
||||||
});
|
});
|
||||||
|
// Add in the callback so we can keep the two in sync
|
||||||
|
widget.input.AJAX_callback = function() { widget._dhtmlxtree_json_callback(JSON.parse(this.response), widget.input.lastLoadedXMLId);};
|
||||||
|
|
||||||
// attach all event handlers (attributs starting with "on"), if they are set
|
// attach all event handlers (attributs starting with "on"), if they are set
|
||||||
for(var name in widget.options)
|
for(var name in widget.options)
|
||||||
{
|
{
|
||||||
|
@ -435,6 +435,7 @@ function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHand
|
|||||||
* @topic: 0
|
* @topic: 0
|
||||||
*/
|
*/
|
||||||
dhtmlXTreeObject.prototype.loadXML=function(file,afterCall){
|
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);
|
if (this._datamode && this._datamode!="xml") return this["load"+this._datamode.toUpperCase()](file,afterCall);
|
||||||
var that=this;
|
var that=this;
|
||||||
if (!this.parsCount) this.callEvent("onXLS",[that,this._ld_id]);
|
if (!this.parsCount) this.callEvent("onXLS",[that,this._ld_id]);
|
||||||
|
Loading…
Reference in New Issue
Block a user