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

Commit

Permalink
Reload_registry message: make sure to trigger only if required. This …
Browse files Browse the repository at this point in the history
…can end up in a loop.
  • Loading branch information
cdujeu committed Jun 16, 2015
1 parent 195165e commit 4507aaf
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions core/src/plugins/gui.ajax/res/js/pydio/class.Ajaxplorer.js
Expand Up @@ -87,9 +87,12 @@ Class.create("Ajaxplorer", {
}.bind(this));

this.observe("server_message", function(xml){
if(XPathSelectSingleNode(xml, "tree/require_registry_reload")){
this.repositoryId = null;
this.loadXmlRegistry(false);
var reload = XPathSelectSingleNode(xml, "tree/require_registry_reload");
if(reload){
if(reload.getAttribute("repositoryId") != this.repositoryId){
this.repositoryId = null;
this.loadXmlRegistry(false);
}
}
}.bind(this));

Expand Down

0 comments on commit 4507aaf

Please sign in to comment.