Always hide the notification when “dismiss” is pressed.
[Sone.git] / src / main / resources / static / javascript / sone.js
index 4ab0aab..a67e156 100644 (file)
@@ -414,15 +414,13 @@ function getReply(replyId, callbackFunction) {
  * @param notification
  *            jQuery object representing the notification.
  */
-function ajaxifyNotificationArea(notification) {
+function ajaxifyNotification(notification) {
        notification.find("form.dismiss").submit(function() {
                return false;
        });
        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();
                });
        });
 }