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:
parent
a0cc1e6b0c
commit
abd51a5511
@ -48,14 +48,14 @@ RED.notify = (function() {
|
||||
});
|
||||
};
|
||||
})();
|
||||
$(n).click((function() {
|
||||
var nn = n;
|
||||
return function() {
|
||||
nn.close();
|
||||
window.clearTimeout(nn.timeoutid);
|
||||
};
|
||||
})());
|
||||
if (!fixed) {
|
||||
$(n).click((function() {
|
||||
var nn = n;
|
||||
return function() {
|
||||
nn.close();
|
||||
window.clearTimeout(nn.timeoutid);
|
||||
};
|
||||
})());
|
||||
n.timeoutid = window.setTimeout(n.close,timeout||3000);
|
||||
}
|
||||
currentNotifications.push(n);
|
||||
|
Loading…
Reference in New Issue
Block a user