Allowing mutliple action-link groups to be defined for grid entries. These must be comma seperated.

This commit is contained in:
Andreas Stöckel 2011-08-02 11:51:58 +00:00
parent 11475a41cd
commit 10e5735e16

View File

@ -148,9 +148,15 @@ egwGridDataElement.prototype.set_group = function(_value)
this.group = _value;
var root = this.getRootElement();
if (typeof root.actionLinkGroups[_value] != "undefined")
var groups = _value.split(",");
for (var key in groups)
{
this.actionObject.updateActionLinks(root.actionLinkGroups[_value]);
var val = groups[key];
if (typeof root.actionLinkGroups[val] != "undefined")
{
this.actionObject.updateActionLinks(root.actionLinkGroups[val]);
}
}
}