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 e8f067097b
commit 747b3bb103

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);