Format size with bytes
This commit is contained in:
parent
9c07611f95
commit
b100dc868c
3 changed files with 212 additions and 3 deletions
|
|
@ -294,7 +294,7 @@ class N2PageHistoryNode extends CustomHTMLElement {
|
|||
this.elIndex.innerText = this.index
|
||||
this.elDate.innerText = date
|
||||
this.elTime.innerText = time
|
||||
this.elSize.innerText = this.node.get('Content').length
|
||||
this.elSize.innerText = this.formatSize(this.node.get('Content').length)
|
||||
this.elName.innerText = this.node.get('Name')
|
||||
}// }}}
|
||||
formatSize(s) {// {{{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue