mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-01-27 07:04:24 +00:00
add check if cbFunc is function to focusModalWithElement()
This commit is contained in:
parent
0599685df4
commit
e94a813587
@ -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…
x
Reference in New Issue
Block a user