From f2b739e33256e1912aa1442d27ae200265c48f20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20St=C3=B6ckel?= Date: Sun, 17 Apr 2011 20:27:23 +0000 Subject: [PATCH] Added additional parameters to the 'enabled' callback (1. the action, 2. an array of action object, 3. the current action object) --- phpgwapi/js/egw_action/egw_action.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/js/egw_action/egw_action.js b/phpgwapi/js/egw_action/egw_action.js index 00acc95616..9dee68c1ba 100644 --- a/phpgwapi/js/egw_action/egw_action.js +++ b/phpgwapi/js/egw_action/egw_action.js @@ -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++;