Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Fix goTo: if current context is already the correct one, unnecessary …
Browse files Browse the repository at this point in the history
…to go to it. If isLeaf but browsable archive, still go to folder content.
  • Loading branch information
cdujeu committed Oct 28, 2014
1 parent a324c04 commit 76311be
Showing 1 changed file with 5 additions and 2 deletions.
Expand Up @@ -744,16 +744,19 @@ Class.create("Ajaxplorer", {
}
}

var current = this._contextHolder.getContextNode();
if(current && current.getPath() == path){
return;
}
var gotoNode;
if(path == "" || path == "/") {
gotoNode = new AjxpNode("/");
this._contextHolder.requireContextChange(gotoNode);
return;
}
window.setTimeout(function(){

this._contextHolder.loadPathInfoSync(path, function(foundNode){
if(foundNode.isLeaf()) {
if(foundNode.isLeaf() && foundNode.getAjxpMime()!='ajxp_browsable_archive') {
this._contextHolder.setPendingSelection(getBaseName(path));
gotoNode = new AjxpNode(getRepName(path));
}else{
Expand Down

0 comments on commit 76311be

Please sign in to comment.