Fix detection of notifications that show their details.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 21 Jan 2011 08:00:03 +0000 (09:00 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 21 Jan 2011 08:00:03 +0000 (09:00 +0100)
src/main/resources/static/javascript/sone.js

index a673f8c..405c6be 100644 (file)
@@ -777,7 +777,7 @@ function getStatus() {
                                notification = ajaxifyNotification(createNotification(value.id, value.text, value.dismissable)).hide();
                                if (oldNotification.length != 0) {
                                        if (oldNotification.find(".short-text").length > 0) {
-                                               opened = !oldNotification.find(".short-text").hasClass("hidden");
+                                               opened = oldNotification.find(".short-text").hasClass("hidden");
                                                notification.find(".short-text").toggleClass("hidden", opened);
                                                notification.find(".text").toggleClass("hidden", !opened);
                                        }