diff options
author | Julia Kirschenheuter <6078378+JuliaKirschenheuter@users.noreply.github.com> | 2022-12-23 11:54:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-23 11:54:25 +0100 |
commit | f176b3b3dd7febce8c1008f70d133c425fa87c22 (patch) | |
tree | 307959201710592460aaca449e13c3de44274e2d /apps/files/js/app.js | |
parent | 99382a094c550ee725856290e05f915e4b05c5d7 (diff) | |
parent | 3485450b20327a7901bd8e0a62a2fa948903ee42 (diff) | |
download | nextcloud-server-f176b3b3dd7febce8c1008f70d133c425fa87c22.tar.gz nextcloud-server-f176b3b3dd7febce8c1008f70d133c425fa87c22.zip |
Merge pull request #35795 from nextcloud/enh/35770-Replace_custom_tooltips_with_native_one_for_files
Replace custom tooltips with native ones in files
Diffstat (limited to 'apps/files/js/app.js')
-rw-r--r-- | apps/files/js/app.js | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/apps/files/js/app.js b/apps/files/js/app.js index 4f335a5b04a..8053f89268c 100644 --- a/apps/files/js/app.js +++ b/apps/files/js/app.js @@ -64,7 +64,6 @@ // Toggle for grid view this.$showGridView = $('input#showgridview'); this.$showGridView.on('change', _.bind(this._onGridviewChange, this)); - $('#view-toggle').tooltip({placement: 'bottom', trigger: 'hover'}); if ($('#fileNotFound').val() === "1") { OC.Notification.show(t('files', 'File could not be found'), {type: 'error'}); @@ -147,10 +146,6 @@ // trigger URL change event handlers this._onPopState(urlParams); - $('#quota.has-tooltip').tooltip({ - placement: 'top' - }); - this._debouncedPersistShowHiddenFilesState = _.debounce(this._persistShowHiddenFilesState, 1200); this._debouncedPersistCropImagePreviewsState = _.debounce(this._persistCropImagePreviewsState, 1200); @@ -428,10 +423,9 @@ this.$showGridView.next('#view-toggle') .removeClass('icon-toggle-filelist icon-toggle-pictures') .addClass(isGridView ? 'icon-toggle-filelist' : 'icon-toggle-pictures') - this.$showGridView.next('#view-toggle').attr( - 'data-original-title', - isGridView ? t('files', 'Show list view') : t('files', 'Show grid view'), - ) + this.$showGridView.next('#view-toggle') + .attr('title', isGridView ? t('files', 'Show list view') : t('files', 'Show grid view')) + this.$showGridView.attr('aria-label', isGridView ? t('files', 'Show list view') : t('files', 'Show grid view')) if (this.currentFileList) { this.currentFileList.setGridView(isGridView); |