Browse Source

add check if cbFunc is function to focusModalWithElement()

readme-update
Simon Grim 9 years ago
parent
commit
e94a813587
  1. 3
      js/interface_common.js

3
js/interface_common.js

@ -148,7 +148,8 @@ function resumeModal(event) { @@ -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;
}

Loading…
Cancel
Save