From: David ‘Bombe’ Roden Date: Fri, 21 Jan 2011 10:18:53 +0000 (+0100) Subject: Use “hidden” CSS class to show the notification’s details. X-Git-Tag: 0.4.2^2~9 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=33c7a1d603aa8b68bd908ba9886efd5925ce048e;p=Sone.git Use “hidden” CSS class to show the notification’s details. --- diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index 4188326..36db543 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -1081,8 +1081,8 @@ function createNotification(id, text, dismissable) { * The ID of the notification */ function showNotificationDetails(notificationId) { - $("#sone .notification#" + notificationId + " .text").show(); - $("#sone .notification#" + notificationId + " .short-text").hide(); + $("#sone .notification#" + notificationId + " .text").removeClass("hidden"); + $("#sone .notification#" + notificationId + " .short-text").addClass("hidden"); } /**