diff options
author | Vincent Petry <pvince81@owncloud.com> | 2017-03-30 16:08:25 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-08-21 09:59:10 +0200 |
commit | 2cb346114685ded69f5291812503c278298c1bce (patch) | |
tree | ff18f30b777d441dc167d874c61a55a041c23da3 /apps/files_external/js | |
parent | 6e3b8db98dd00ca0473e1a7d41174ed3dc9c7830 (diff) | |
download | nextcloud-server-2cb346114685ded69f5291812503c278298c1bce.tar.gz nextcloud-server-2cb346114685ded69f5291812503c278298c1bce.zip |
Move GDrive external storage to a separate repo
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/files_external/js')
-rw-r--r-- | apps/files_external/js/gdrive.js | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/apps/files_external/js/gdrive.js b/apps/files_external/js/gdrive.js deleted file mode 100644 index e02cedd6b45..00000000000 --- a/apps/files_external/js/gdrive.js +++ /dev/null @@ -1,26 +0,0 @@ -$(document).ready(function() { - - function generateUrl($tr) { - // no mapping between client ID and Google 'project', so we always load the same URL - return 'https://console.developers.google.com/'; - } - - OCA.External.Settings.mountConfig.whenSelectBackend(function($tr, backend, onCompletion) { - if (backend === 'googledrive') { - var backendEl = $tr.find('.backend'); - var el = $(document.createElement('a')) - .attr('href', generateUrl($tr)) - .attr('target', '_blank') - .attr('title', t('files_external', 'Google Drive 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); - } - }); - -}); |