diff --git a/api/js/egw_action/egw_action.js b/api/js/egw_action/egw_action.js index 11107b4d1c..bbf9451132 100644 --- a/api/js/egw_action/egw_action.js +++ b/api/js/egw_action/egw_action.js @@ -661,9 +661,9 @@ egwAction.prototype.set_enabled = function(_value) }; /** - * The allowOnMultiple property may be true, false or "only" + * The allowOnMultiple property may be true, false, "only" (> 1) or number of select, eg. 2 * - * @param {(boolean|string)} _value + * @param {(boolean|string|number)} _value */ egwAction.prototype.set_allowOnMultiple = function(_value) { @@ -2110,7 +2110,8 @@ egwActionObject.prototype._getLinks = function(_objs, _actionType) ( (actionLinks[k].actionObj.allowOnMultiple === true) || (actionLinks[k].actionObj.allowOnMultiple == "only" && _objs.length > 1) || - (actionLinks[k].actionObj.allowOnMultiple == false && _objs.length === 1) + (actionLinks[k].actionObj.allowOnMultiple == false && _objs.length === 1) || + (typeof actionLinks[k].actionObj.allowOnMultiple === 'number' && _objs.length == actionLinks[k].actionObj.allowOnMultiple) ); if (!egwIsMobile()) actionLinks[k].actionObj.hideOnMobile = false; actionLinks[k].visible = actionLinks[k].visible && !actionLinks[k].actionObj.hideOnMobile &&