1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Notifications flagged as fixed should not be click-closable

This commit is contained in:
Nick O'Leary 2016-01-12 23:06:18 +00:00
parent a0cc1e6b0c
commit abd51a5511

View File

@ -48,14 +48,14 @@ RED.notify = (function() {
}); });
}; };
})(); })();
$(n).click((function() {
var nn = n;
return function() {
nn.close();
window.clearTimeout(nn.timeoutid);
};
})());
if (!fixed) { if (!fixed) {
$(n).click((function() {
var nn = n;
return function() {
nn.close();
window.clearTimeout(nn.timeoutid);
};
})());
n.timeoutid = window.setTimeout(n.close,timeout||3000); n.timeoutid = window.setTimeout(n.close,timeout||3000);
} }
currentNotifications.push(n); currentNotifications.push(n);