Check for post time at the correct place.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 13 Jan 2011 15:00:33 +0000 (16:00 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 13 Jan 2011 18:08:01 +0000 (19:08 +0100)
src/main/resources/static/javascript/sone.js

index cd34ed2..3c229e0 100644 (file)
@@ -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) {