mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-21 12:51:21 +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
520e17c1b2
commit
3e86e42306
@ -2109,8 +2109,8 @@ egwActionObject.prototype._getLinks = function(_objs, _actionType)
|
|||||||
(actionLinks[k].cnt >= testedSelected.length) &&
|
(actionLinks[k].cnt >= testedSelected.length) &&
|
||||||
(
|
(
|
||||||
(actionLinks[k].actionObj.allowOnMultiple === true) ||
|
(actionLinks[k].actionObj.allowOnMultiple === true) ||
|
||||||
(actionLinks[k].actionObj.allowOnMultiple == "only" && actionLinks[k].cnt > 1) ||
|
(actionLinks[k].actionObj.allowOnMultiple == "only" && _objs.length > 1) ||
|
||||||
(actionLinks[k].actionObj.allowOnMultiple == false && actionLinks[k].cnt == 1)
|
(actionLinks[k].actionObj.allowOnMultiple == false && _objs.length === 1)
|
||||||
);
|
);
|
||||||
if (!egwIsMobile()) actionLinks[k].actionObj.hideOnMobile = false;
|
if (!egwIsMobile()) actionLinks[k].actionObj.hideOnMobile = false;
|
||||||
actionLinks[k].visible = actionLinks[k].visible && !actionLinks[k].actionObj.hideOnMobile &&
|
actionLinks[k].visible = actionLinks[k].visible && !actionLinks[k].actionObj.hideOnMobile &&
|
||||||
|
Loading…
Reference in New Issue
Block a user