mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
fix(listeners) history
This commit is contained in:
parent
075c94673b
commit
a9400ce06b
2 changed files with 6 additions and 2 deletions
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue