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

Commit 4507aaf

Browse files
committed
Reload_registry message: make sure to trigger only if required. This can end up in a loop.
1 parent 195165e commit 4507aaf

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

core/src/plugins/gui.ajax/res/js/pydio/class.Ajaxplorer.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,12 @@ Class.create("Ajaxplorer", {
8787
}.bind(this));
8888

8989
this.observe("server_message", function(xml){
90-
if(XPathSelectSingleNode(xml, "tree/require_registry_reload")){
91-
this.repositoryId = null;
92-
this.loadXmlRegistry(false);
90+
var reload = XPathSelectSingleNode(xml, "tree/require_registry_reload");
91+
if(reload){
92+
if(reload.getAttribute("repositoryId") != this.repositoryId){
93+
this.repositoryId = null;
94+
this.loadXmlRegistry(false);
95+
}
9396
}
9497
}.bind(this));
9598

0 commit comments

Comments
 (0)