From 98ad2cf25e30072de8fe1f476971b656bc7446a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Syn=C3=A1=C4=8Dek?= Date: Sun, 24 Nov 2019 22:37:36 +0100 Subject: [PATCH] use event name to re-download iCal file instead of action button --- lib/public/scripts.js | 9 ++++----- lib/views/index.ejs | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/public/scripts.js b/lib/public/scripts.js index c41f41e..a79a667 100644 --- a/lib/public/scripts.js +++ b/lib/public/scripts.js @@ -134,12 +134,12 @@ new Date(startTime).toLocaleString() : 'N/A\xa0\xa0\xa0\xa0\xa0' - const titleCol = document.createElement('td') - titleCol.innerText = title - const downloadEl = document.createElement('a') downloadEl.setAttribute('href', link) - downloadEl.innerText = '⬇︎' + downloadEl.innerText = title + + const titleCol = document.createElement('td') + titleCol.appendChild(downloadEl) const deleteEl = document.createElement('a') deleteEl.setAttribute('href', 'javascript:void(0)') @@ -152,7 +152,6 @@ const actionCol = document.createElement('td') actionCol.classList.add('actions') - actionCol.appendChild(downloadEl) actionCol.appendChild(deleteEl) newRow.appendChild(startTimeCol) diff --git a/lib/views/index.ejs b/lib/views/index.ejs index 9302971..d01d416 100644 --- a/lib/views/index.ejs +++ b/lib/views/index.ejs @@ -63,7 +63,7 @@ Date - Title + Name