From: David ‘Bombe’ Roden Date: Sat, 27 Nov 2010 09:25:19 +0000 (+0100) Subject: Do not override getPostId()! Also, rename getSoneId() to match getShownPostId(). X-Git-Tag: 0.3.2-RC1~22 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=b18d79c7c4478b3c474448e45da7fca4fb38c3f9;p=Sone.git Do not override getPostId()! Also, rename getSoneId() to match getShownPostId(). --- diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index b7f323e..60a3848 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -636,7 +636,7 @@ function isViewSonePage() { * * @returns The ID of the currently shown Sone */ -function getSoneId() { +function getShownSoneId() { return $("#sone .sone-id").text(); } @@ -656,7 +656,7 @@ function isViewPostPage() { * * @returns The ID of the currently shown post */ -function getPostId() { +function getShownPostId() { return $("#sone .post-id").text(); } @@ -670,7 +670,7 @@ function loadNewPost(postId) { loadedPosts[postId] = true; $.getJSON("getPost.ajax", { "post" : postId }, function(data, textStatus) { if ((data != null) && data.success) { - if (!isIndexPage() && !(isViewSonePage() && (getSoneId() == data.post.sone))) { + if (!isIndexPage() && !(isViewSonePage() && (getShownSoneId() == data.post.sone))) { return; } var firstOlderPost = null;