From 8cf44910fb8d20d99b15c575e73b0521205a3e76 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Fri, 26 Nov 2010 19:38:31 +0100 Subject: [PATCH] Revert "Try to prevent insertion of a post or reply multiple times." This reverts commit 2dab45dd964a48144d8c919b491f792b53f5a2ea. --- src/main/resources/static/javascript/sone.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index 7d7bcb5..a4ad957 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -611,10 +611,6 @@ function loadNewPost(postId) { loadedPosts[postId] = true; $.getJSON("ajax/getPost.ajax", { "post" : postId }, function(data, textStatus) { if ((data != null) && data.success) { - /* maybe weird timing stuff ensues. */ - if (data.post.id in loadedPosts) { - return; - } var firstOlderPost = null; $("#sone .post").each(function() { if (getPostTime(this) < data.post.time) { @@ -642,10 +638,6 @@ function loadNewReply(replyId) { $.getJSON("ajax/getReply.ajax", { "reply": replyId }, function(data, textStatus) { /* find post. */ if ((data != null) && data.success) { - /* maybe weird timing stuff ensues. */ - if (data.reply.id in loadedReplies) { - return; - } $("#sone .post#" + data.reply.postId).each(function() { var firstNewerReply = null; $(this).find(".replies .reply").each(function() { -- 2.7.4