mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-10 16:08:34 +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;
|
return aoi;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user