Always hide the notification when “dismiss” is pressed.
[Sone.git] / 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();
                });
        });
 }