Add notification when runtime stopped due to missing types

Part of #832
This commit is contained in:
Nick O'Leary
2016-12-05 13:24:24 +00:00
parent 16ecb1a9cb
commit 8d21e441a0
5 changed files with 35 additions and 4 deletions

View File

@@ -51,11 +51,17 @@ RED.notify = (function() {
n.update = (function() {
var nn = n;
return function(msg) {
return function(msg,timeout) {
nn.innerHTML = msg;
if (timeout !== undefined && timeout > 0) {
window.clearTimeout(nn.timeoutid);
nn.timeoutid = window.setTimeout(nn.close,timeout);
} else {
window.clearTimeout(nn.timeoutid);
}
}
})();
if (!fixed) {
$(n).click((function() {
var nn = n;