emit notification when alert, confirm, or prompt are called

This commit is contained in:
ansuz 2017-08-28 13:46:28 +02:00
parent e4a356d873
commit 536fe04790

View File

@ -64,6 +64,9 @@ define([
}); });
window.setTimeout(function () { window.setTimeout(function () {
findOKButton().focus(); findOKButton().focus();
if (typeof(UI.notify) === 'function') {
UI.notify();
}
}); });
}; };
@ -97,6 +100,9 @@ define([
cb(null, ev); cb(null, ev);
stopListening(keyHandler); stopListening(keyHandler);
}); });
if (typeof(UI.notify) === 'function') {
UI.notify();
}
}; };
UI.confirm = function (msg, cb, opt, force, styleCB) { UI.confirm = function (msg, cb, opt, force, styleCB) {
@ -141,6 +147,9 @@ define([
styleCB($ok.closest('.dialog')); styleCB($ok.closest('.dialog'));
} }
}, 0); }, 0);
if (typeof(UI.notify) === 'function') {
UI.notify();
}
}; };
UI.log = function (msg) { UI.log = function (msg) {