diff options
Diffstat (limited to 'apps/files_external/js/gdrive.js')
-rw-r--r-- | apps/files_external/js/gdrive.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/apps/files_external/js/gdrive.js b/apps/files_external/js/gdrive.js index e660aa8cb26..e02cedd6b45 100644 --- a/apps/files_external/js/gdrive.js +++ b/apps/files_external/js/gdrive.js @@ -7,17 +7,19 @@ $(document).ready(function() { OCA.External.Settings.mountConfig.whenSelectBackend(function($tr, backend, onCompletion) { if (backend === 'googledrive') { - 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', 'Google Drive Configuration') + ' ↗') + .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).parent())); + a.attr('href', generateUrl($(this).closest('tr'))); }); - config.append(el); + el.tooltip({placement: 'top'}); + backendEl.append(el); } }); |