From 9e99f7924e00bdc1307ef2c0317650452bbd4d35 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 11 May 2014 13:40:03 -0700 Subject: [PATCH] fix unwanted refresh/reload bugs --- src/General/Navigate.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/General/Navigate.coffee b/src/General/Navigate.coffee index d92318ed2..efe2b20bb 100644 --- a/src/General/Navigate.coffee +++ b/src/General/Navigate.coffee @@ -179,6 +179,7 @@ Navigate = return if e.shiftKey or e.ctrlKey or (e.type is 'click' and e.button isnt 0) # Not simply a left click if @pathname is Navigate.path + return if @id is 'popState' if g.VIEW is 'thread' ThreadUpdater.update() else @@ -207,7 +208,8 @@ Navigate = path = @pathname path += @hash if @hash - Navigate.pushState path unless @id is 'popState' + history.pushState null, '', path unless @id is 'popState' + Navigate.path = @pathname unless view is 'index' and 'index' is g.VIEW and boardID is g.BOARD.ID Navigate.disconnect()