From 653610559deeaf767ceb4954b26f6d1a75381e77 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Fri, 2 Jun 2017 17:08:49 +0200 Subject: Bye bye Dropbox v1 Signed-off-by: Morris Jobke --- apps/files_external/js/dropbox.js | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 apps/files_external/js/dropbox.js (limited to 'apps/files_external/js') 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); - } - }); - -}); -- cgit v1.2.3