Deal with some undefined behavior
This commit is contained in:
parent
94332e2f62
commit
d8b8028459
@ -3762,6 +3762,9 @@
|
||||
pageNum = Math.floor(Index.liveThreadData.keys.indexOf("" + postID) / Index.threadsNumPerPage);
|
||||
pageIcon = " <span class=page-num title='This thread is on page " + pageNum + " in the original index.'>Page " + pageNum + "</span>";
|
||||
replyLink = " <span>[<a href='/" + boardID + "/thread/" + threadID + "' class=replylink>Reply</a>]</span>";
|
||||
} else {
|
||||
pageIcon = '';
|
||||
replyLink = '';
|
||||
}
|
||||
container = $.el('div', {
|
||||
id: "pc" + postID,
|
||||
|
||||
@ -3821,6 +3821,9 @@
|
||||
pageNum = Math.floor(Index.liveThreadData.keys.indexOf("" + postID) / Index.threadsNumPerPage);
|
||||
pageIcon = " <span class=page-num title='This thread is on page " + pageNum + " in the original index.'>Page " + pageNum + "</span>";
|
||||
replyLink = " <span>[<a href='/" + boardID + "/thread/" + threadID + "' class=replylink>Reply</a>]</span>";
|
||||
} else {
|
||||
pageIcon = '';
|
||||
replyLink = '';
|
||||
}
|
||||
container = $.el('div', {
|
||||
id: "pc" + postID,
|
||||
|
||||
@ -181,6 +181,9 @@ Build =
|
||||
pageNum = Index.liveThreadData.keys.indexOf("#{postID}") // Index.threadsNumPerPage
|
||||
pageIcon = " <span class=page-num title='This thread is on page #{pageNum} in the original index.'>Page #{pageNum}</span>"
|
||||
replyLink = " <span>[<a href='/#{boardID}/thread/#{threadID}' class=replylink>Reply</a>]</span>"
|
||||
else
|
||||
pageIcon = ''
|
||||
replyLink = ''
|
||||
|
||||
container = $.el 'div',
|
||||
id: "pc#{postID}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user