Deal with some undefined behavior

This commit is contained in:
Zixaphir 2014-05-03 02:08:24 -07:00
parent 94332e2f62
commit d8b8028459
3 changed files with 9 additions and 0 deletions

View File

@ -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 = " &nbsp; <span>[<a href='/" + boardID + "/thread/" + threadID + "' class=replylink>Reply</a>]</span>";
} else {
pageIcon = '';
replyLink = '';
}
container = $.el('div', {
id: "pc" + postID,

View File

@ -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 = " &nbsp; <span>[<a href='/" + boardID + "/thread/" + threadID + "' class=replylink>Reply</a>]</span>";
} else {
pageIcon = '';
replyLink = '';
}
container = $.el('div', {
id: "pc" + postID,

View File

@ -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 = " &nbsp; <span>[<a href='/#{boardID}/thread/#{threadID}' class=replylink>Reply</a>]</span>"
else
pageIcon = ''
replyLink = ''
container = $.el 'div',
id: "pc#{postID}"