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

Commit

Permalink
es6: fix Registry Loading
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Jun 2, 2015
1 parent 35afc65 commit 8df6ab0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions core/src/plugins/gui.ajax/res/js/es6/Pydio.es6
Expand Up @@ -70,7 +70,8 @@ class Pydio extends Observable{
initObjects: function(){},
updateI18nTags: function(){},
insertForm:function(formId, formCode){},
removeForm: function(formId){}
removeForm: function(formId){},
mountComponents: function(componentsNodes){}
};
}

Expand Down Expand Up @@ -135,8 +136,8 @@ class Pydio extends Observable{
}
this.observe("server_message", function(xml){
if(XMLUtils.XPathSelectSingleNode(xml, "tree/require_registry_reload")){
this.repositoryId = null;
this.loadXmlRegistry(false);
this.repositoryId = null;
}
}.bind(this));
}
Expand All @@ -148,7 +149,7 @@ class Pydio extends Observable{
* @param xPath String An XPath to load only a subpart of the registry
*/
loadXmlRegistry (sync, xPath=null, completeFunc=null){
this.Registry.load(sync, xPath, completeFunc);
this.Registry.load(sync, xPath, completeFunc, this.repositoryId);
}

/**
Expand Down Expand Up @@ -342,8 +343,8 @@ class Pydio extends Observable{
if(transport.responseXML){
this.Controller.parseXmlMessage(transport.responseXML);
}
this.repositoryId = null;
this.loadXmlRegistry();
this.repositoryId = null;
}.bind(this);
var root = this._contextHolder.getRootNode();
if(root){
Expand Down

0 comments on commit 8df6ab0

Please sign in to comment.