X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fresources%2Fstatic%2Fjavascript%2Fsone.js;h=0d1772e6532099b18cc92e65ecf797a0b8b9d0e8;hp=69c11e00b21912f76ab6c80b622fffc119bc7c3f;hb=7554e62e2d7a4b21f500c63f1c071d44daa6803a;hpb=8bffa1f587a32d04fdb7d4525f31974e4324cd2d diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index 69c11e0..0d1772e 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -707,8 +707,11 @@ function loadNewReply(replyId) { if (replyId in loadedReplies) { return; } - loadedReplies[replyId] = true; $.getJSON("getReply.ajax", { "reply": replyId }, function(data, textStatus) { + if (replyId in loadedReplies) { + return; + } + loadedReplies[replyId] = true; /* find post. */ if ((data != null) && data.success) { $("#sone .post#" + data.reply.postId).each(function() {