use event name to re-download iCal file instead of action button

This commit is contained in:
Ondřej Synáček 2019-11-24 22:37:36 +01:00
parent ca14709309
commit 98ad2cf25e
2 changed files with 5 additions and 6 deletions

View File

@ -134,12 +134,12 @@
new Date(startTime).toLocaleString() : new Date(startTime).toLocaleString() :
'N/A\xa0\xa0\xa0\xa0\xa0' 'N/A\xa0\xa0\xa0\xa0\xa0'
const titleCol = document.createElement('td')
titleCol.innerText = title
const downloadEl = document.createElement('a') const downloadEl = document.createElement('a')
downloadEl.setAttribute('href', link) downloadEl.setAttribute('href', link)
downloadEl.innerText = '⬇︎' downloadEl.innerText = title
const titleCol = document.createElement('td')
titleCol.appendChild(downloadEl)
const deleteEl = document.createElement('a') const deleteEl = document.createElement('a')
deleteEl.setAttribute('href', 'javascript:void(0)') deleteEl.setAttribute('href', 'javascript:void(0)')
@ -152,7 +152,6 @@
const actionCol = document.createElement('td') const actionCol = document.createElement('td')
actionCol.classList.add('actions') actionCol.classList.add('actions')
actionCol.appendChild(downloadEl)
actionCol.appendChild(deleteEl) actionCol.appendChild(deleteEl)
newRow.appendChild(startTimeCol) newRow.appendChild(startTimeCol)

View File

@ -63,7 +63,7 @@
<thead> <thead>
<tr> <tr>
<td>Date</td> <td>Date</td>
<td>Title</td> <td>Name</td>
<td></td> <td></td>
</tr> </tr>
</thead> </thead>