mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 07:09:20 +01:00
Implement action system state for trees
This commit is contained in:
parent
e6c32bf765
commit
178fa34031
@ -53,6 +53,20 @@ function dhtmlxtreeItemAOI(_tree, _itemId)
|
||||
}
|
||||
}
|
||||
|
||||
aoi.doSetState = function(_state) {
|
||||
if(!_tree || !_tree.focusItem) return;
|
||||
|
||||
// Update the "focused" flag
|
||||
if(egwBitIsSet(_state, EGW_AO_STATE_FOCUSED))
|
||||
{
|
||||
_tree.focusItem(this.id);
|
||||
}
|
||||
if(egwBitIsSet(_state, EGW_AO_STATE_SELECTED))
|
||||
{
|
||||
_tree.selectItem(this.id, false); // false = do not trigger onSelect
|
||||
}
|
||||
}
|
||||
|
||||
return aoi;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user