Browse Source

add check if cbFunc is function to focusModalWithElement()

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

1
js/interface_common.js

@ -148,6 +148,7 @@ function resumeModal(event) {
function focusModalWithElement(elem, cbFunc, cbArg) { function focusModalWithElement(elem, cbFunc, cbArg) {
if (elem.jquery ? elem.is('html *') : $(elem).is('html *')) { if (elem.jquery ? elem.is('html *') : $(elem).is('html *')) {
if (typeof cbFunc === 'function')
cbFunc(cbArg); cbFunc(cbArg);
return true; return true;
} }

Loading…
Cancel
Save