focus on the current window when you pop an alert
This commit is contained in:
@@ -237,6 +237,7 @@ define([
|
|||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
$ok.focus();
|
$ok.focus();
|
||||||
UI.notify();
|
UI.notify();
|
||||||
|
if (!document.hasFocus()) { window.focus(); }
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -282,6 +283,7 @@ define([
|
|||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
input.select().focus();
|
input.select().focus();
|
||||||
UI.notify();
|
UI.notify();
|
||||||
|
if (!document.hasFocus()) { window.focus(); }
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -331,6 +333,7 @@ define([
|
|||||||
if (typeof(opt.done) === 'function') {
|
if (typeof(opt.done) === 'function') {
|
||||||
opt.done($ok.closest('.dialog'));
|
opt.done($ok.closest('.dialog'));
|
||||||
}
|
}
|
||||||
|
if (!document.hasFocus()) { window.focus(); }
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user