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/files.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/files.js')
-rw-r--r-- | apps/files/js/files.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js index 614186bc86a..a14afcd4fce 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -72,7 +72,7 @@ } if (response.data !== undefined && response.data.uploadMaxFilesize !== undefined) { $('#free_space').val(response.data.freeSpace); - $('#upload.button').attr('data-original-title', response.data.maxHumanFilesize); + $('#upload.button').attr('title', response.data.maxHumanFilesize); $('#usedSpacePercent').val(response.data.usedSpacePercent); $('#usedSpacePercent').data('mount-type', response.data.mountType); $('#usedSpacePercent').data('mount-point', response.data.mountPoint); @@ -85,7 +85,7 @@ return; } if (response[0].uploadMaxFilesize !== undefined) { - $('#upload.button').attr('data-original-title', response[0].maxHumanFilesize); + $('#upload.button').attr('title', response[0].maxHumanFilesize); $('#usedSpacePercent').val(response[0].usedSpacePercent); Files.displayStorageWarnings(); } @@ -104,7 +104,7 @@ var humanUsed = OC.Util.humanFileSize(response.data.used, true); var humanTotal = OC.Util.humanFileSize(response.data.total, true); if (response.data.quota > 0) { - $('#quota').attr('data-original-title', t('files', '{used}%', {used: Math.round(response.data.usedSpacePercent)})); + $('#quota').attr('title', t('files', '{used}%', {used: Math.round(response.data.usedSpacePercent)})); $('#quota progress').val(response.data.usedSpacePercent); $('#quotatext').html(t('files', '{used} of {quota} used', {used: humanUsed, quota: humanTotal})); } else { @@ -346,8 +346,6 @@ this.setSelectionRange(0, this.value.length); }); - $('#upload').tooltip({placement:'right'}); - //FIXME scroll to and highlight preselected file /* if (getURLParameter('scrollto')) { |