X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fresources%2Fstatic%2Fjavascript%2Fsone.js;h=8a6411825db453d557a9f49e16d41b3818470304;hp=133e1d4c295a2d39bb769c6d40211ea20df32ac6;hb=faa26c42ce692d20bd5c22c3e1797729d7dea9e1;hpb=e0e0192f88d5b5c27b7d29bcb3778d53e38a9897 diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index 133e1d4..8a64118 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -453,11 +453,8 @@ function ajaxifyPost(postElement) { $(inputField).val(""); postReply(postId, text, function(success, error, replyId) { if (success) { - getReply(replyId, function(soneId, soneName, replyTime, replyDisplayTime, text, html) { - newReply = $(html).insertBefore("#sone .post#" + postId + " .create-reply"); - $("#sone .post#" + postId + " .create-reply").addClass("hidden"); - ajaxifyReply(newReply); - }); + loadNewReply(replyId); + $("#sone .post#" + postId + " .create-reply").addClass("hidden"); } else { alert(error); }