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