do NOT require enabled=true for (enable|disable)Class or enableId attribute to work

This commit is contained in:
Ralf Becker 2013-10-04 11:18:50 +00:00
parent 4c6a249d40
commit 59f264ada4

View File

@ -368,7 +368,7 @@ egwAction.prototype.updateActions = function(_actions, _app)
}
// set certain enabled functions (if enabled is on it's default of true)
if (elem.enabled === true)
if (typeof elem.enabled == 'undefined' || elem.enabled === true)
{
if (typeof elem.enableClass != "undefined")
{