diff options
author | Robin McCorkell <robin@mccorkell.me.uk> | 2016-03-31 23:20:00 +0100 |
---|---|---|
committer | Robin McCorkell <robin@mccorkell.me.uk> | 2016-05-03 11:30:02 +0100 |
commit | ac27163f686ea082c3ca565a26c1c76db0728237 (patch) | |
tree | 996d66d6fe6b6582c881bb565742dc9cba801c93 /apps/files_external/js/dropbox.js | |
parent | a09ef66eea12faf1055f642fa79e910773cb96a0 (diff) | |
download | nextcloud-server-ac27163f686ea082c3ca565a26c1c76db0728237.tar.gz nextcloud-server-ac27163f686ea082c3ca565a26c1c76db0728237.zip |
Move Dropbox/GDrive link to icon
Diffstat (limited to 'apps/files_external/js/dropbox.js')
-rw-r--r-- | apps/files_external/js/dropbox.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/apps/files_external/js/dropbox.js b/apps/files_external/js/dropbox.js index 9e1427e4603..8302f5711d6 100644 --- a/apps/files_external/js/dropbox.js +++ b/apps/files_external/js/dropbox.js @@ -11,17 +11,19 @@ $(document).ready(function() { OCA.External.Settings.mountConfig.whenSelectBackend(function($tr, backend, onCompletion) { if (backend === 'dropbox') { - var config = $tr.find('.configuration'); + var backendEl = $tr.find('.backend'); var el = $(document.createElement('a')) .attr('href', generateUrl($tr)) .attr('target', '_blank') - .text(t('files_external', 'Dropbox Configuration') + ' ↗') + .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).parent())); + a.attr('href', generateUrl($(this).closest('tr'))); }); - config.append(el); + el.tooltip({placement: 'top'}); + backendEl.append(el); } }); |