mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
Added additional parameters to the 'enabled' callback (1. the action, 2. an array of action object, 3. the current action object)
This commit is contained in:
parent
cbf233bccd
commit
f2b739e332
@ -1395,7 +1395,7 @@ egwActionObject.prototype._getLinks = function(_objs, _actionType)
|
||||
|
||||
// Accumulate the action link properties
|
||||
var llink = actionLinks[olink.actionId];
|
||||
llink.enabled = llink.enabled && olink.actionObj.enabled.exec(this) &&
|
||||
llink.enabled = llink.enabled && olink.actionObj.enabled.exec(olink.actionObj, _objs, _objs[i]) &&
|
||||
olink.enabled && olink.visible;
|
||||
llink.visible = (llink.visible || olink.visible);
|
||||
llink.cnt++;
|
||||
|
Loading…
Reference in New Issue
Block a user