summaryrefslogtreecommitdiffstats
path: root/apps/files_external/js
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2017-06-02 17:08:49 +0200
committerMorris Jobke <hey@morrisjobke.de>2017-08-16 11:03:25 +0200
commit653610559deeaf767ceb4954b26f6d1a75381e77 (patch)
tree20a4a5dc9e120f0cfcf798dad3e41945fd8aab79 /apps/files_external/js
parent4c558c99f326d4b399cc503c8c1a43e1099ba9d9 (diff)
downloadnextcloud-server-653610559deeaf767ceb4954b26f6d1a75381e77.tar.gz
nextcloud-server-653610559deeaf767ceb4954b26f6d1a75381e77.zip
Bye bye Dropbox v1
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/files_external/js')
-rw-r--r--apps/files_external/js/dropbox.js30
1 files changed, 0 insertions, 30 deletions
diff --git a/apps/files_external/js/dropbox.js b/apps/files_external/js/dropbox.js
deleted file mode 100644
index 8302f5711d6..00000000000
--- a/apps/files_external/js/dropbox.js
+++ /dev/null
@@ -1,30 +0,0 @@
-$(document).ready(function() {
-
- function generateUrl($tr) {
- var app_key = $tr.find('[data-parameter="app_key"]').val();
- if (app_key) {
- return 'https://www.dropbox.com/developers/apps/info/' + app_key;
- } else {
- return 'https://www.dropbox.com/developers/apps';
- }
- }
-
- OCA.External.Settings.mountConfig.whenSelectBackend(function($tr, backend, onCompletion) {
- if (backend === 'dropbox') {
- var backendEl = $tr.find('.backend');
- var el = $(document.createElement('a'))
- .attr('href', generateUrl($tr))
- .attr('target', '_blank')
- .attr('title', t('files_external', 'Dropbox App Configuration'))
- .addClass('icon-settings svg')
- ;
- el.on('click', function(event) {
- var a = $(event.target);
- a.attr('href', generateUrl($(this).closest('tr')));
- });
- el.tooltip({placement: 'top'});
- backendEl.append(el);
- }
- });
-
-});