summaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2013-02-12 23:27:31 +0100
committerThomas Mueller <thomas.mueller@tmit.eu>2013-02-12 23:27:31 +0100
commit010c4c289123da70ccceee22e9f56927d7fe553f (patch)
tree6e40beb7901d2b678f0d329d7d2f09dd6cda84d0 /apps/files_external
parenta814361ca7b26e1499f4e3bb66908d7da89662fe (diff)
downloadnextcloud-server-010c4c289123da70ccceee22e9f56927d7fe553f.tar.gz
nextcloud-server-010c4c289123da70ccceee22e9f56927d7fe553f.zip
adding spinner while talking to the backend
Diffstat (limited to 'apps/files_external')
-rw-r--r--apps/files_external/css/settings.css1
-rw-r--r--apps/files_external/js/settings.js8
2 files changed, 7 insertions, 2 deletions
diff --git a/apps/files_external/css/settings.css b/apps/files_external/css/settings.css
index 94b453793b1..2580fe48ae0 100644
--- a/apps/files_external/css/settings.css
+++ b/apps/files_external/css/settings.css
@@ -2,6 +2,7 @@ td.status>span { display:inline-block; height:16px; width:16px; }
span.success { background-image: url('../img/success.png'); background-repeat:no-repeat; }
span.error { background-image: url('../img/error.png'); background-repeat:no-repeat; }
span.waiting { background-image: url('../img/waiting.png'); background-repeat:no-repeat; }
+span.pending { background-image: url('%webroot%/core/img/loading.gif'); background-repeat:no-repeat; }
td.mountPoint, td.backend { width:10em; }
td.remove>img { visibility:hidden; padding-top:0.8em; }
tr:hover>td.remove>img { visibility:visible; cursor:pointer; }
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) {