post building should not depend on JSON navigation

This commit is contained in:
ccd0 2014-04-12 17:56:44 -07:00
parent ca216894ff
commit 8812d4b326

View File

@ -181,12 +181,16 @@ Build =
else
''
if isOP and g.VIEW is 'index'
if isOP and g.VIEW is 'index' and Conf['JSON Navigation']
pageNum = Math.floor Index.liveThreadIDs.indexOf(postID) / Index.threadsNumPerPage
pageIcon = " <span class=page-num title='This thread is on page #{pageNum} in the original index.'>[#{pageNum}]</span>"
else
pageIcon = ''
if isOP and g.VIEW is 'index'
replyLink = " &nbsp; <span>[<a href='/#{boardID}/res/#{threadID}' class=replylink>Reply</a>]</span>"
else
pageIcon = replyLink = ''
replyLink = ''
container = $.el 'div',
id: "pc#{postID}"