From 9d08948109a22cc7b0fa498efa42a098f6924a07 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 13 Jan 2011 16:00:33 +0100 Subject: [PATCH] Check for post time at the correct place. --- src/main/resources/static/javascript/sone.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) { -- 2.7.4