| Index: notification.js | 
| =================================================================== | 
| --- a/notification.js | 
| +++ b/notification.js | 
| @@ -110,11 +110,20 @@ | 
| var notificationElement = document.getElementById("notification"); | 
| notificationElement.className = notification.type; | 
| - notificationElement.style.display = "block"; | 
| - | 
| - document.getElementById("close-notification").addEventListener("click", function() | 
| + notificationElement.hidden = false; | 
| + notificationElement.addEventListener("click", function(event) | 
| { | 
| - notificationElement.style.display = "none"; | 
| - notification.onClicked(); | 
| - }, false); | 
| + switch (event.target.id) | 
| + { | 
| + case "notification-close": | 
| + notificationElement.classList.add("closing"); | 
| + break; | 
| + case "notification-optout": | 
| + Notification.toggleIgnoreCategory("*", true); | 
| + case "notification-hide": | 
| + notificationElement.hidden = true; | 
| + notification.onClicked(); | 
| + break; | 
| 
 
Sebastian Noack
2015/06/25 13:55:04
Nit: This break is redundant. But I leave it up to
 
Thomas Greiner
2015/06/25 16:48:44
That's mainly a personal preference of mine to ens
 
 | 
| + } | 
| + }, true); | 
| }, false); |