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

Commit a275cea

Browse files
authored
Merge pull request #1245 from dnauck/static-file-fix
Update to new API and fix static file download
2 parents d06decc + b98d5f6 commit a275cea

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

core/src/plugins/gui.ajax/res/js/ui/prototype/class.FormManager.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -448,19 +448,17 @@ Class.create("FormManager", {
448448
};
449449
conn.sendAsync();
450450
}else if(json_file){
451-
var req = new Connexion(json_file);
452-
req.onComplete = function(transport){
451+
PydioApi.getClient().loadFile(json_file, function(transport){
453452
element = div.down("select");
454453
if(defaultValue) element.defaultValue = defaultValue;
455454
element.down('option[value="loading"]').remove();
456-
$A(transport.responseJSON).each(function(entry){
455+
transport.responseJSON.each(function(entry){
457456
var option = new Element('OPTION', {value:entry.key}).update(entry.label);
458457
if(entry.key == defaultValue) option.setAttribute("selected", "true");
459458
element.insert(option);
460459
});
461460
element.fire("chosen:updated");
462-
};
463-
req.sendAsync();
461+
});
464462
}
465463

466464
if(param.get('replicationGroup')){

0 commit comments

Comments
 (0)