From 99e302eb0c11242c301daac57aa13272ccba6550 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Fri, 19 Sep 2014 22:34:01 -0700 Subject: [PATCH] fix keybind conditions --- src/Miscellaneous/Keybinds.coffee | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Miscellaneous/Keybinds.coffee b/src/Miscellaneous/Keybinds.coffee index 02beb8ac4..0ad8be306 100755 --- a/src/Miscellaneous/Keybinds.coffee +++ b/src/Miscellaneous/Keybinds.coffee @@ -103,7 +103,6 @@ Keybinds = # Board Navigation when Conf['Front page'] if Conf['JSON Navigation'] and g.VIEW is 'index' - return unless Conf['Index Mode'] is 'paged' Index.userPageNav 1 else window.location = "/#{g.BOARD}/" @@ -112,7 +111,7 @@ Keybinds = when Conf['Next page'] return unless g.VIEW is 'index' if Conf['JSON Navigation'] - return unless Conf['Index Mode'] is 'paged' + return unless Conf['Index Mode'] in ['paged', 'infinite'] $('.next button', Index.pagelist).click() else if form = $ '.next form' @@ -120,7 +119,7 @@ Keybinds = when Conf['Previous page'] return unless g.VIEW is 'index' if Conf['JSON Navigation'] - return unless Conf['Index Mode'] is 'paged' + return unless Conf['Index Mode'] in ['paged', 'infinite'] $('.prev button', Index.pagelist).click() else if form = $ '.prev form'