From: David ‘Bombe’ Roden Date: Sun, 14 Nov 2010 21:19:22 +0000 (+0100) Subject: Always hide the notification when “dismiss” is pressed. X-Git-Tag: 0.3-RC1~52 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=a078991eccaa834ff9cd8fdaf90a7e45c1f4dfa3 Always hide the notification when “dismiss” is pressed. --- diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index 75fa965..a67e156 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -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(); }); }); }