fix typeError if enableClass method is called without _target parameter

stalling rendering of nextmatch rows in filemanager
This commit is contained in:
Ralf Becker 2018-07-30 11:20:54 +02:00
parent a17a29db81
commit 0a2f41f29d

View File

@ -518,6 +518,10 @@ egwAction.prototype.not_disableClass = function(_action, _senders, _target)
*/
egwAction.prototype.enableClass = function(_action, _senders, _target)
{
if (typeof _target == 'undefined')
{
return false;
} else
if(_target.iface.getDOMNode())
{
return jQuery(_target.iface.getDOMNode()).hasClass(_action.data.enableClass);