Improve file size

This commit is contained in:
Pierre HUBERT 2021-03-06 19:09:54 +01:00
parent dd2c8ea707
commit 04c7d31f12
2 changed files with 2 additions and 2 deletions

View File

@ -1066,7 +1066,7 @@ const ConvChatWindow = {
appendTo: messageTargetElem, appendTo: messageTargetElem,
type: "a", type: "a",
href: messageFile.url, href: messageFile.url,
innerHTML: "<i class='fa fa-download'></i> "+ messageFile.name + " (" + messageFile.size/1024 + "MB)", innerHTML: "<i class='fa fa-download'></i> "+ messageFile.name + " ("+fileSizeToHuman(messageFile.size)+")",
}) })
letFileLink.target = "_blank" letFileLink.target = "_blank"
} }

View File

@ -343,7 +343,7 @@ const ConversationPageConvPart = {
appendTo: messageContentContainer, appendTo: messageContentContainer,
type: "a", type: "a",
href: messageFile.url, href: messageFile.url,
innerHTML: "<i class='fa fa-download'></i> "+ messageFile.name + " (" + messageFile.size/1024 + "MB)", innerHTML: "<i class='fa fa-download'></i> "+ messageFile.name + " ("+fileSizeToHuman(messageFile.size) +")",
}) })
letFileLink.target = "_blank" letFileLink.target = "_blank"
} }