mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Change allowOnMultiple check to use count of selected objects, not count of actionLinks
Allows enabled check functions to call other actions's enabled functions.
This commit is contained in:
parent
a874535df4
commit
7843da6e08
@ -2078,8 +2078,8 @@ egwActionObject.prototype._getLinks = function(_objs, _actionType)
|
||||
(actionLinks[k].cnt >= testedSelected.length) &&
|
||||
(
|
||||
(actionLinks[k].actionObj.allowOnMultiple === true) ||
|
||||
(actionLinks[k].actionObj.allowOnMultiple == "only" && actionLinks[k].cnt > 1) ||
|
||||
(actionLinks[k].actionObj.allowOnMultiple == false && actionLinks[k].cnt == 1)
|
||||
(actionLinks[k].actionObj.allowOnMultiple == "only" && _objs.length > 1) ||
|
||||
(actionLinks[k].actionObj.allowOnMultiple == false && _objs.length === 1)
|
||||
);
|
||||
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