From: David ‘Bombe’ Roden Date: Thu, 13 Jan 2011 14:04:35 +0000 (+0100) Subject: Also react correctly on a “view Sone” page. X-Git-Tag: 0.3.7^2~5^2~1 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=cfba9b2bee5b9059c57bceaf66778ee169ad0a74 Also react correctly on a “view Sone” page. --- diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index dd7b749..70d124e 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -710,8 +710,12 @@ function loadNewPost(postId, soneId, recipientId) { if (hasPost(postId)) { return; } - if (!isIndexPage() && (!isViewPostPage() || (getShownPostId() != postId))) { - return; + if (!isIndexPage()) { + if (!isViewPostPage() || (getShownPostId() != postId)) { + if (!isViewSonePage() || ((getShownSoneId() != soneId) && (getShownSoneId() != recipientId))) { + return; + } + } } $.getJSON("getPost.ajax", { "post" : postId }, function(data, textStatus) { if ((data != null) && data.success) {