Always hide the notification when “dismiss” is pressed.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 14 Nov 2010 21:19:22 +0000 (22:19 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 14 Nov 2010 21:19:22 +0000 (22:19 +0100)
src/main/resources/static/javascript/sone.js

index 75fa965..a67e156 100644 (file)
@@ -420,9 +420,7 @@ function ajaxifyNotification(notification) {
        });
        notification.find("form.dismiss button").click(function() {
                $.getJSON("ajax/dismissNotification.ajax", { "formPassword" : getFormPassword(), "notification" : notification.attr("id") }, function(data, textStatus) {
-                       if (data.success) {
-                               notification.slideUp();
-                       }
+                       notification.slideUp();
                });
        });
 }