From a9400ce06b87140e2f2805d46a6328e5e53c8a49 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Tue, 1 Jul 2014 03:50:20 -0400 Subject: [PATCH] fix(listeners) history --- lib/client/dom.js | 4 +++- lib/client/listeners.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/client/dom.js b/lib/client/dom.js index af209efc..d77b712c 100644 --- a/lib/client/dom.js +++ b/lib/client/dom.js @@ -1608,7 +1608,9 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog; if (!files || !files.parentElement) current = filesPassive[0]; - DOM.setCurrentFile(current); + DOM.setCurrentFile(current, { + nohistory: false + }); return this; }; diff --git a/lib/client/listeners.js b/lib/client/listeners.js index 506ddbff..1236133b 100644 --- a/lib/client/listeners.js +++ b/lib/client/listeners.js @@ -334,7 +334,9 @@ var Util, DOM, CloudFunc, CloudCmd; function pop() { Events.add('popstate', function(event) { - var path = event.state; + var path = event.state; + + path = Util.rmStrOnce(path, CloudFunc.FS); if (path) CloudCmd.loadDir({