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