diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js
index 90345fb7d..675a73f8b 100644
--- a/builds/4chan-X.user.js
+++ b/builds/4chan-X.user.js
@@ -3736,7 +3736,7 @@
sticky = isSticky ? "
" : '';
closed = isClosed ? "
" : '';
if (isOP && g.VIEW === 'index') {
- pageNum = Math.floor(Index.liveThreadData.keys.indexOf(postID) / Index.threadsNumPerPage);
+ pageNum = Math.floor(Index.liveThreadData.keys.indexOf("" + postID) / Index.threadsNumPerPage);
pageIcon = " Page " + pageNum + "";
replyLink = " [Reply]";
} else {
@@ -3805,7 +3805,7 @@
data = Index.liveThreadData[thread.ID];
postCount = data.replies + 1;
fileCount = data.images + !!data.ext;
- pageCount = Math.floor(Index.liveThreadData.keys.indexOf(thread.ID) / Index.threadsNumPerPage);
+ pageCount = Math.floor(Index.liveThreadData.keys.indexOf("" + thread.ID) / Index.threadsNumPerPage);
subject = thread.OP.info.subject ? "
" + thread.OP.info.subject + "
" : '';
comment = thread.OP.nodes.comment.innerHTML.replace(/(
\s*){2,}/g, '
');
root = $.el('div', {
diff --git a/builds/crx/script.js b/builds/crx/script.js
index edafd5d36..336cee79b 100644
--- a/builds/crx/script.js
+++ b/builds/crx/script.js
@@ -3795,7 +3795,7 @@
sticky = isSticky ? "
" : '';
closed = isClosed ? "
" : '';
if (isOP && g.VIEW === 'index') {
- pageNum = Math.floor(Index.liveThreadData.keys.indexOf(postID) / Index.threadsNumPerPage);
+ pageNum = Math.floor(Index.liveThreadData.keys.indexOf("" + postID) / Index.threadsNumPerPage);
pageIcon = " Page " + pageNum + "";
replyLink = " [Reply]";
} else {
@@ -3864,7 +3864,7 @@
data = Index.liveThreadData[thread.ID];
postCount = data.replies + 1;
fileCount = data.images + !!data.ext;
- pageCount = Math.floor(Index.liveThreadData.keys.indexOf(thread.ID) / Index.threadsNumPerPage);
+ pageCount = Math.floor(Index.liveThreadData.keys.indexOf("" + thread.ID) / Index.threadsNumPerPage);
subject = thread.OP.info.subject ? "" + thread.OP.info.subject + "
" : '';
comment = thread.OP.nodes.comment.innerHTML.replace(/(
\s*){2,}/g, '
');
root = $.el('div', {
diff --git a/src/General/Build.coffee b/src/General/Build.coffee
index 4896ea58a..be0a55576 100755
--- a/src/General/Build.coffee
+++ b/src/General/Build.coffee
@@ -181,7 +181,7 @@ Build =
''
if isOP and g.VIEW is 'index'
- pageNum = Index.liveThreadData.keys.indexOf(postID) // Index.threadsNumPerPage
+ pageNum = Index.liveThreadData.keys.indexOf("#{postID}") // Index.threadsNumPerPage
pageIcon = " Page #{pageNum}"
replyLink = " [Reply]"
else
@@ -241,7 +241,7 @@ Build =
postCount = data.replies + 1
fileCount = data.images + !!data.ext
- pageCount = Index.liveThreadData.keys.indexOf(thread.ID) // Index.threadsNumPerPage
+ pageCount = Index.liveThreadData.keys.indexOf("#{thread.ID}") // Index.threadsNumPerPage
subject = if thread.OP.info.subject
"#{thread.OP.info.subject}
"