Add href attribute to event link

This commit is contained in:
klarstrup 2017-08-06 21:09:43 +02:00 committed by GitHub
parent c5d7caf3fc
commit 5ff0289d6f

View file

@ -247,6 +247,7 @@ function render_event_instance(event_instance) {
'background-color: ' + event_instance['bg-color'] +
'; color: ' + event_instance['fg-color']);
element.classList.add('event');
element.setAttribute('href', event_instance['url']);
element.dataset.eventInstanceId = event_instance['id'];
time_element = document.createElement('small');