From 747b3bb1033048f2ac38bbc3f7089de6f9450611 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 30 Jul 2018 11:20:54 +0200 Subject: [PATCH] fix typeError if enableClass method is called without _target parameter stalling rendering of nextmatch rows in filemanager --- api/js/egw_action/egw_action.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/js/egw_action/egw_action.js b/api/js/egw_action/egw_action.js index 450beb0ffe..9ad17adad9 100644 --- a/api/js/egw_action/egw_action.js +++ b/api/js/egw_action/egw_action.js @@ -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);