summaryrefslogtreecommitdiffstats
path: root/core/src/OC/dialogs.js
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-02-07 17:08:50 +0100
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-03-09 13:31:50 +0100
commitbb1d8b318964b5b778e4c381db2f9ff281164384 (patch)
tree363ad7483868749111c6ba96b09dcf3f99ae751a /core/src/OC/dialogs.js
parentac03f54079535fd9e047fbe3fbbe2a5768eb6e83 (diff)
downloadnextcloud-server-bb1d8b318964b5b778e4c381db2f9ff281164384.tar.gz
nextcloud-server-bb1d8b318964b5b778e4c381db2f9ff281164384.zip
Remove deprecated global variables
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core/src/OC/dialogs.js')
-rw-r--r--core/src/OC/dialogs.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/src/OC/dialogs.js b/core/src/OC/dialogs.js
index cea857f6f2e..87b7728bdd9 100644
--- a/core/src/OC/dialogs.js
+++ b/core/src/OC/dialogs.js
@@ -787,11 +787,11 @@ const Dialogs = {
$conflict.data('data', data)
$conflict.find('.filename').text(original.name)
- $originalDiv.find('.size').text(humanFileSize(original.size))
+ $originalDiv.find('.size').text(OC.Util.humanFileSize(original.size))
$originalDiv.find('.mtime').text(formatDate(original.mtime))
// ie sucks
if (replacement.size && replacement.lastModifiedDate) {
- $replacementDiv.find('.size').text(humanFileSize(replacement.size))
+ $replacementDiv.find('.size').text(OC.Util.humanFileSize(replacement.size))
$replacementDiv.find('.mtime').text(formatDate(replacement.lastModifiedDate))
}
var path = original.directory + '/' + original.name
@@ -1164,7 +1164,7 @@ const Dialogs = {
entry.icon = OC.MimeType.getIconUrl(entry.mimetype)
var simpleSize, sizeColor
if (typeof (entry.size) !== 'undefined' && entry.size >= 0) {
- simpleSize = humanFileSize(parseInt(entry.size, 10), true)
+ simpleSize = OC.Util.humanFileSize(parseInt(entry.size, 10), true)
sizeColor = Math.round(160 - Math.pow((entry.size / (1024 * 1024)), 2))
} else {
simpleSize = t('files', 'Pending')