From: David ‘Bombe’ Roden Date: Thu, 25 Nov 2010 14:02:27 +0000 (+0100) Subject: Store the times of posts and replies with unique class names. X-Git-Tag: 0.3.1-RC1~9 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=08e3bf47ecb5699c13307dece92fc0bc36947b55;p=Sone.git Store the times of posts and replies with unique class names. --- diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index 956b3df..619b62e 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -299,7 +299,7 @@ function getPostId(element) { } function getPostTime(element) { - return getPostElement(element).find(".storage-time").text(); + return getPostElement(element).find(".post-time").text(); } function getReplyElement(element) { @@ -311,7 +311,7 @@ function getReplyId(element) { } function getReplyTime(element) { - return getReplyElement(element).find(".storage-time").text(); + return getReplyElement(element).find(".reply-time").text(); } function likePost(postId) { diff --git a/src/main/resources/templates/include/viewPost.html b/src/main/resources/templates/include/viewPost.html index 82cda92..452513b 100644 --- a/src/main/resources/templates/include/viewPost.html +++ b/src/main/resources/templates/include/viewPost.html @@ -1,6 +1,6 @@
- +
Avatar Image
diff --git a/src/main/resources/templates/include/viewReply.html b/src/main/resources/templates/include/viewReply.html index 88ead37..d0a7842 100644 --- a/src/main/resources/templates/include/viewReply.html +++ b/src/main/resources/templates/include/viewReply.html @@ -1,6 +1,6 @@
- +
Avatar Image