Skip to content

Commit

Permalink
Notifications flagged as fixed should not be click-closable
Browse files Browse the repository at this point in the history
  • Loading branch information
knolleary committed Jan 12, 2016
1 parent a0cc1e6 commit abd51a5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions editor/js/ui/notifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit abd51a5

Please sign in to comment.