diff --git a/js/interface_common.js b/js/interface_common.js index 197fee9..45ba036 100644 --- a/js/interface_common.js +++ b/js/interface_common.js @@ -148,7 +148,8 @@ function resumeModal(event) { function focusModalWithElement(elem, cbFunc, cbArg) { if (elem.jquery ? elem.is('html *') : $(elem).is('html *')) { - cbFunc(cbArg); + if (typeof cbFunc === 'function') + cbFunc(cbArg); return true; }