diff --git a/src/General/Build.coffee b/src/General/Build.coffee index b8684853f..946ca1f3d 100755 --- a/src/General/Build.coffee +++ b/src/General/Build.coffee @@ -182,7 +182,7 @@ Build = '' if isOP and g.VIEW is 'index' and Conf['JSON Navigation'] - pageNum = Math.floor Index.liveThreadIDs.indexOf(postID) / Index.threadsNumPerPage + pageNum = Math.floor Index.liveThreadIDs.indexOf(postID) / Index.threadsNumPerPage + 1 pageIcon = " [#{pageNum}]" else pageIcon = '' diff --git a/src/General/Config.coffee b/src/General/Config.coffee index 828ab1469..9ce66a610 100755 --- a/src/General/Config.coffee +++ b/src/General/Config.coffee @@ -671,11 +671,11 @@ vp-replace ] # Board Navigation 'Front page': [ - '0' + '1' 'Jump to front page.' ] 'Open front page': [ - 'Shift+0' + 'Shift+1' 'Open front page in a new tab.' ] 'Next page': [ diff --git a/src/General/Navigate.coffee b/src/General/Navigate.coffee index 32a5f9c0e..f2a82915c 100644 --- a/src/General/Navigate.coffee +++ b/src/General/Navigate.coffee @@ -198,7 +198,7 @@ Navigate = if threadID view = 'thread' else - pageNum = +view + pageNum = +view or 1 # string to number, '' to 1 view = 'index' # path is "/boardID/". See the problem? if view is g.VIEW and boardID is g.BOARD.ID diff --git a/src/Miscellaneous/Keybinds.coffee b/src/Miscellaneous/Keybinds.coffee index b58de0e55..aaa0e8582 100755 --- a/src/Miscellaneous/Keybinds.coffee +++ b/src/Miscellaneous/Keybinds.coffee @@ -87,7 +87,7 @@ Keybinds = # Board Navigation when Conf['Front page'] if Conf['JSON Navigation'] and g.VIEW is 'index' - Index.userPageNav 0 + Index.userPageNav 1 else window.location = "/#{g.BOARD}/" when Conf['Open front page'] diff --git a/src/Monitoring/ThreadStats.coffee b/src/Monitoring/ThreadStats.coffee index ad3d869d1..185f87fb3 100755 --- a/src/Monitoring/ThreadStats.coffee +++ b/src/Monitoring/ThreadStats.coffee @@ -80,5 +80,5 @@ ThreadStats = for page in @response for thread in page.threads when thread.no is ThreadStats.thread.ID ThreadStats.pageCountEl.textContent = page.page - (if page.page is @response.length - 1 then $.addClass else $.rmClass) ThreadStats.pageCountEl, 'warning' - return \ No newline at end of file + (if page.page is @response.length then $.addClass else $.rmClass) ThreadStats.pageCountEl, 'warning' + return