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-26 09:33:37 +00:00
parent 090ebb8d0f
commit 72e1e949d7
1 changed files with 6 additions and 3 deletions

View File

@ -336,9 +336,12 @@
var focus = $('#modal-dialog').find('input');
if (focus) {
setTimeout(function() {
var focus = $('#modal-dialog').find('input');
if (focus) {
$(focus[0]).focus();
var focus = $('#modal-dialog');
if (focus.length > 0) {
focus = focus.find('input');
if (focus.length > 0) {
$(focus[0]).focus();
}
}
}, 800);
}