mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-06 05:59:28 +01:00
allow to specify for how many selected rows an action should be shown
This commit is contained in:
parent
3e86e42306
commit
cae866db13
@ -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 &&
|
||||
|
Loading…
Reference in New Issue
Block a user