aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/files.js
diff options
context:
space:
mode:
authorjulia.kirschenheuter <julia.kirschenheuter@nextcloud.com>2022-12-16 11:27:34 +0100
committerjulia.kirschenheuter <julia.kirschenheuter@nextcloud.com>2022-12-22 14:43:26 +0100
commit3485450b20327a7901bd8e0a62a2fa948903ee42 (patch)
tree014e39bfd5b5afe1136c9c9721a90ce7a8803fb5 /apps/files/js/files.js
parentff2b8ca8f558853fcf679a6c14db7cf8dfc73635 (diff)
downloadnextcloud-server-3485450b20327a7901bd8e0a62a2fa948903ee42.tar.gz
nextcloud-server-3485450b20327a7901bd8e0a62a2fa948903ee42.zip
Replace custom tooltips with native ones in files
Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
Diffstat (limited to 'apps/files/js/files.js')
-rw-r--r--apps/files/js/files.js8
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')) {