Use “hidden” CSS class to show the notification’s details.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 21 Jan 2011 10:18:53 +0000 (11:18 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 21 Jan 2011 10:18:53 +0000 (11:18 +0100)
src/main/resources/static/javascript/sone.js

index 4188326..36db543 100644 (file)
@@ -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");
 }
 
 /**