Shorter dates

This commit is contained in:
Henri Bergius 2017-12-01 18:00:31 +01:00
parent c60d19c66c
commit 8c4070afbc

View file

@ -70,11 +70,7 @@ function renderEvent(event, container) {
destination.innerHTML = event.title;
if (startDate.toDateString() !== prevDate.toDateString()) {
if (window.innerWidth > window.innerHeight) {
status.innerHTML = dateformat(startDate, 'ddd dd.mm.');
} else {
status.innerHTML = dateformat(startDate, 'dd.mm.');
}
status.innerHTML = dateformat(startDate, 'dd.mm.');
}
if (startDate.toDateString() === now.toDateString()) {
row.classList.add('today');