From: David ‘Bombe’ Roden Date: Fri, 21 Jan 2011 08:00:03 +0000 (+0100) Subject: Fix detection of notifications that show their details. X-Git-Tag: 0.4.2^2~13 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=912305d5508a628c59a57f977305c3febe1acc70 Fix detection of notifications that show their details. --- diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index a673f8c..405c6be 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -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); }