1
0
Fork 0

Potential fix for the ghost, killing the frontend test from time to time. Go Jenkins, find it

This commit is contained in:
Michael Hackstein 2015-01-25 16:16:20 +00:00
parent fcf3760dea
commit 9f790f3aa1
1 changed files with 6 additions and 1 deletions

View File

@ -335,7 +335,12 @@
//if input-field is available -> autofocus first one
var focus = $('#modal-dialog').find('input');
if (focus) {
setTimeout(function() {$(focus[0]).focus();}, 800);
setTimeout(function() {
var focus = $('#modal-dialog').find('input');
if (focus) {
$(focus[0]).focus();
}
}, 800);
}
},