From: David ‘Bombe’ Roden Date: Thu, 13 Jan 2011 15:00:33 +0000 (+0100) Subject: Check for post time at the correct place. X-Git-Tag: 0.3.7^2~3^2 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=9d08948109a22cc7b0fa498efa42a098f6924a07 Check for post time at the correct place. --- diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index cd34ed2..3c229e0 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -716,9 +716,9 @@ function loadNewPost(postId, soneId, recipientId, time) { return; } } - if (getPostTime($("#sone .post").last()) > time) { - return; - } + } + if (getPostTime($("#sone .post").last()) > time) { + return; } $.getJSON("getPost.ajax", { "post" : postId }, function(data, textStatus) { if ((data != null) && data.success) {