summaryrefslogtreecommitdiffstats
path: root/apps/files_external/js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_external/js')
-rw-r--r--apps/files_external/js/settings.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/apps/files_external/js/settings.js b/apps/files_external/js/settings.js
index 30b2eac417f..5dffbce5bdf 100644
--- a/apps/files_external/js/settings.js
+++ b/apps/files_external/js/settings.js
@@ -58,8 +58,6 @@ OC.MountConfig={
}
users.push(applicable);
}
- statusSpan.removeClass();
- statusSpan.addClass('pending');
$.ajax({type: 'POST',
url: OC.filePath('files_external', 'ajax', 'addMountPoint.php'),
data: {
@@ -70,7 +68,7 @@ OC.MountConfig={
applicable: applicable,
isPersonal: isPersonal
},
- async: true,
+ async: false,
success: function(result) {
statusSpan.removeClass();
if (result && result.status == 'success' && result.data.message) {
@@ -118,8 +116,6 @@ OC.MountConfig={
var isPersonal = true;
var mountType = 'user';
var applicable = OC.currentUser;
- statusSpan.removeClass();
- statusSpan.addClass('pending');
$.ajax({type: 'POST',
url: OC.filePath('files_external', 'ajax', 'addMountPoint.php'),
data: {
@@ -130,7 +126,7 @@ OC.MountConfig={
applicable: applicable,
isPersonal: isPersonal
},
- async: true,
+ async: false,
success: function(result) {
statusSpan.removeClass();
if (result && result.status == 'success' && result.data.message) {