Shorter dates
This commit is contained in:
parent
c60d19c66c
commit
8c4070afbc
1 changed files with 1 additions and 5 deletions
|
@ -70,11 +70,7 @@ function renderEvent(event, container) {
|
||||||
destination.innerHTML = event.title;
|
destination.innerHTML = event.title;
|
||||||
|
|
||||||
if (startDate.toDateString() !== prevDate.toDateString()) {
|
if (startDate.toDateString() !== prevDate.toDateString()) {
|
||||||
if (window.innerWidth > window.innerHeight) {
|
status.innerHTML = dateformat(startDate, 'dd.mm.');
|
||||||
status.innerHTML = dateformat(startDate, 'ddd dd.mm.');
|
|
||||||
} else {
|
|
||||||
status.innerHTML = dateformat(startDate, 'dd.mm.');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (startDate.toDateString() === now.toDateString()) {
|
if (startDate.toDateString() === now.toDateString()) {
|
||||||
row.classList.add('today');
|
row.classList.add('today');
|
||||||
|
|
Loading…
Reference in a new issue