Return the notification as well as modify it.
[Sone.git] / src / main / resources / static / javascript / sone.js
index 75fa965..8c6db31 100644 (file)
@@ -420,9 +420,8 @@ 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();
                });
        });
+       return notification;
 }