summaryrefslogtreecommitdiffstats
path: root/apps/files_external/js
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-12-26 13:45:22 -0500
committerMichael Gapczynski <mtgap@owncloud.com>2012-12-26 13:45:22 -0500
commit5d68e04e5a43d6d6f52ff511f899bc831a6aa4be (patch)
tree0de1aa9a84e3c6b9fb34f0066905db6090f155bb /apps/files_external/js
parent30a07e95737e3bed7be1d418c49fa9b60e160e7b (diff)
downloadnextcloud-server-5d68e04e5a43d6d6f52ff511f899bc831a6aa4be.tar.gz
nextcloud-server-5d68e04e5a43d6d6f52ff511f899bc831a6aa4be.zip
Change callback url for dropbox as well
Diffstat (limited to 'apps/files_external/js')
-rw-r--r--apps/files_external/js/dropbox.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/js/dropbox.js b/apps/files_external/js/dropbox.js
index c1e38640708..cc6a37d0511 100644
--- a/apps/files_external/js/dropbox.js
+++ b/apps/files_external/js/dropbox.js
@@ -61,7 +61,7 @@ $(document).ready(function() {
var configured = $(this).parent().find('[data-parameter="configured"]');
var token = $(this).parent().find('[data-parameter="token"]');
var token_secret = $(this).parent().find('[data-parameter="token_secret"]');
- $.post(OC.filePath('files_external', 'ajax', 'dropbox.php'), { step: 1, app_key: app_key, app_secret: app_secret, callback: window.location.href }, function(result) {
+ $.post(OC.filePath('files_external', 'ajax', 'dropbox.php'), { step: 1, app_key: app_key, app_secret: app_secret, callback: location.protocol + '//' + location.host + location.pathname }, function(result) {
if (result && result.status == 'success') {
$(configured).val('false');
$(token).val(result.data.request_token);