forked from extern/egroupware
add basic refreshItem function; TODO: need to implement the refreshing of the actions
This commit is contained in:
parent
c6164973ae
commit
6e1e86123f
@ -443,6 +443,26 @@ var et2_tree = et2_inputWidget.extend(
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* refreshItem, refreshes an item by id
|
||||
* @param _id ID of the node
|
||||
* @return void
|
||||
*/
|
||||
refreshItem: function(_id, _selectParent) {
|
||||
if(this.input == null) return null;
|
||||
this.input.setDataMode('JSON');
|
||||
this.input.refreshItem(_id);
|
||||
// Update action
|
||||
// since the action ID has to = this.id, getObjectById() won't work
|
||||
var treeObj = egw_getAppObjectManager().getObjectById(this.id);
|
||||
for(var i=0; i < treeObj.children.length; i++)
|
||||
{
|
||||
if(treeObj.children[i].iface && treeObj.children[i].iface.id == _id)
|
||||
{
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* setLabel, sets the Label of of an item by id
|
||||
* @param _id ID of the node
|
||||
|
Loading…
Reference in New Issue
Block a user