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:
Andreas Stöckel 2011-04-17 20:27:23 +00:00
parent cbf233bccd
commit f2b739e332

View File

@ -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++;