From: David ‘Bombe’ Roden Date: Sat, 1 Jan 2011 01:26:53 +0000 (+0100) Subject: Add method to show a notification’s details. X-Git-Tag: beta-freefall-0.6.2-1~157 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=492b74d555c5f7ac879aa1f3d90087b946b84852;p=Sone.git Add method to show a notification’s details. --- diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index 8a3780f..9aa0b82 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -830,6 +830,17 @@ function createNotification(id, text, dismissable) { return notification; } +/** + * Shows the details of the notification with the given ID. + * + * @param notificationId + * The ID of the notification + */ +function showNotificationDetails(notificationId) { + $("#sone .notification#" + notificationId + " .text").show(); + $("#sone .notification#" + notificationId + " .short-text").hide(); +} + // // EVERYTHING BELOW HERE IS EXECUTED AFTER LOADING THE PAGE //