|
|
|
@ -237,6 +237,7 @@ define([
|
|
|
|
|
setTimeout(function () {
|
|
|
|
|
$ok.focus();
|
|
|
|
|
UI.notify();
|
|
|
|
|
if (!document.hasFocus()) { window.focus(); }
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
@ -282,10 +283,11 @@ define([
|
|
|
|
|
setTimeout(function () {
|
|
|
|
|
input.select().focus();
|
|
|
|
|
UI.notify();
|
|
|
|
|
if (!document.hasFocus()) { window.focus(); }
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
UI.confirm = function (msg, cb, opt, force, styleCB) {
|
|
|
|
|
UI.confirm = function (msg, cb, opt, force) {
|
|
|
|
|
cb = cb || function () {};
|
|
|
|
|
opt = opt || {};
|
|
|
|
|
|
|
|
|
@ -328,9 +330,10 @@ define([
|
|
|
|
|
document.body.appendChild(frame);
|
|
|
|
|
setTimeout(function () {
|
|
|
|
|
UI.notify();
|
|
|
|
|
if (typeof(styleCB) === 'function') {
|
|
|
|
|
styleCB($ok.closest('.dialog'));
|
|
|
|
|
if (typeof(opt.done) === 'function') {
|
|
|
|
|
opt.done($ok.closest('.dialog'));
|
|
|
|
|
}
|
|
|
|
|
if (!document.hasFocus()) { window.focus(); }
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|