summaryrefslogtreecommitdiffstats
path: root/apps/files_external/js
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2013-01-09 21:47:24 -0500
committerMichael Gapczynski <mtgap@owncloud.com>2013-01-09 21:47:24 -0500
commit78043d73e83b95b0d1328598f59a1a65707f4ca6 (patch)
tree33d7f4e57a134baeff9bc6a226aecfc24576cde1 /apps/files_external/js
parent7f218c4dc07edd2393ffa132745dcc0df16508e3 (diff)
downloadnextcloud-server-78043d73e83b95b0d1328598f59a1a65707f4ca6.tar.gz
nextcloud-server-78043d73e83b95b0d1328598f59a1a65707f4ca6.zip
Set status to waiting for Dropbox and Google Drive while authenticating
Diffstat (limited to 'apps/files_external/js')
-rw-r--r--apps/files_external/js/dropbox.js3
-rw-r--r--apps/files_external/js/google.js3
2 files changed, 6 insertions, 0 deletions
diff --git a/apps/files_external/js/dropbox.js b/apps/files_external/js/dropbox.js
index 92a92467c79..9314a4c7927 100644
--- a/apps/files_external/js/dropbox.js
+++ b/apps/files_external/js/dropbox.js
@@ -15,6 +15,9 @@ $(document).ready(function() {
if (pos != -1 && window.location.search.substr(pos, $(token).val().length) == $(token).val()) {
var token_secret = $(this).find('.configuration [data-parameter="token_secret"]');
var tr = $(this);
+ var statusSpan = $(tr).find('.status span');
+ statusSpan.removeClass();
+ statusSpan.addClass('waiting');
$.post(OC.filePath('files_external', 'ajax', 'dropbox.php'), { step: 2, app_key: app_key, app_secret: app_secret, request_token: $(token).val(), request_token_secret: $(token_secret).val() }, function(result) {
if (result && result.status == 'success') {
$(token).val(result.access_token);
diff --git a/apps/files_external/js/google.js b/apps/files_external/js/google.js
index 89daa0078e8..ad6fc6a0f9a 100644
--- a/apps/files_external/js/google.js
+++ b/apps/files_external/js/google.js
@@ -22,6 +22,9 @@ $(document).ready(function() {
params[key] = value;
});
if (params['oauth_token'] !== undefined && params['oauth_verifier'] !== undefined && decodeURIComponent(params['oauth_token']) == $(token).val()) {
+ var statusSpan = $(tr).find('.status span');
+ statusSpan.removeClass();
+ statusSpan.addClass('waiting');
$.post(OC.filePath('files_external', 'ajax', 'google.php'), { step: 2, oauth_verifier: params['oauth_verifier'], request_token: $(token).val(), request_token_secret: $(token_secret).val() }, function(result) {
if (result && result.status == 'success') {
$(token).val(result.access_token);