From b18d79c7c4478b3c474448e45da7fca4fb38c3f9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 27 Nov 2010 10:25:19 +0100 Subject: [PATCH] Do not override getPostId()! Also, rename getSoneId() to match getShownPostId(). --- src/main/resources/static/javascript/sone.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; -- 2.7.4