From c37c277447c0de06c1021f21f25ca822dd3c76c0 Mon Sep 17 00:00:00 2001 From: cdujeu Date: Wed, 15 Jul 2015 13:06:08 +0200 Subject: [PATCH] We should get rid of sendSync() wherever possible. --- core/src/plugins/access.fs/fsActions.xml | 8 ++++---- .../plugins/gui.ajax/res/js/ui/prototype/class.PydioUI.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/src/plugins/access.fs/fsActions.xml b/core/src/plugins/access.fs/fsActions.xml index 408bf0829d..4672c063cb 100644 --- a/core/src/plugins/access.fs/fsActions.xml +++ b/core/src/plugins/access.fs/fsActions.xml @@ -604,11 +604,11 @@ conn.addParameter('filename_new', newValue); conn.onComplete = function(transport){ pydio.getController().parseXmlMessage(transport.responseXML); + if(orig && ajaxplorer.getUserSelection()){ + ajaxplorer.getUserSelection().setSelectionSource(orig); + } }; - conn.sendSync(); - if(orig && ajaxplorer.getUserSelection()){ - ajaxplorer.getUserSelection().setSelectionSource(orig); - } + conn.sendAsync(); }; if(ajaxplorer.getUserSelection() && ajaxplorer.getUserSelection().getSelectionSource() && ajaxplorer.getUserSelection().getSelectionSource().switchCurrentLabelToEdition) { ajaxplorer.getUserSelection().getSelectionSource().switchCurrentLabelToEdition(callback); diff --git a/core/src/plugins/gui.ajax/res/js/ui/prototype/class.PydioUI.js b/core/src/plugins/gui.ajax/res/js/ui/prototype/class.PydioUI.js index 0de70a6f20..096aea26a5 100644 --- a/core/src/plugins/gui.ajax/res/js/ui/prototype/class.PydioUI.js +++ b/core/src/plugins/gui.ajax/res/js/ui/prototype/class.PydioUI.js @@ -602,7 +602,7 @@ Class.create("PydioUI", { } } }; - connexion.sendSync(); + connexion.sendAsync(); },