From abd51a5511c148942fc18aef925ac5fbb8c4450b Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Tue, 12 Jan 2016 23:06:18 +0000 Subject: [PATCH] Notifications flagged as fixed should not be click-closable --- editor/js/ui/notifications.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/editor/js/ui/notifications.js b/editor/js/ui/notifications.js index af73dab88..809fcec51 100644 --- a/editor/js/ui/notifications.js +++ b/editor/js/ui/notifications.js @@ -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);