mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2024-12-13 16:06:21 +00:00
fix: albums page' uploads date
This commit is contained in:
parent
c63a2db5ac
commit
69b97e51e0
@ -16,16 +16,16 @@ const page = {
|
||||
const container = element.parentNode.parentNode
|
||||
if (!container.classList.contains('image-container')) return
|
||||
|
||||
const sizeElement = container.querySelector('.file-size')
|
||||
if (sizeElement) {
|
||||
const string = sizeElement.dataset.value || sizeElement.innerHTML
|
||||
sizeElement.innerHTML = page.getPrettyBytes(parseInt(string, 10))
|
||||
const size = container.querySelector('.file-size')
|
||||
if (size) {
|
||||
const string = size.dataset.value || size.innerHTML
|
||||
size.innerHTML = page.getPrettyBytes(parseInt(string, 10))
|
||||
}
|
||||
|
||||
const dateElement = document.querySelector('.file-date')
|
||||
if (dateElement) {
|
||||
const string = dateElement.dataset.value
|
||||
dateElement.innerHTML = page.getPrettyDate(new Date(parseInt(string, 10) * 1000))
|
||||
const date = container.querySelector('.file-date')
|
||||
if (date) {
|
||||
const string = date.dataset.value
|
||||
date.innerHTML = page.getPrettyDate(new Date(parseInt(string, 10) * 1000))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user