improved index page: anchors now have hrefs
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -8,6 +8,7 @@ function addCell(row,content,id){
|
|||||||
var a = document.createElement('a');
|
var a = document.createElement('a');
|
||||||
if (content){
|
if (content){
|
||||||
a.onclick = e => showOverlay('/static/event?id='+id);
|
a.onclick = e => showOverlay('/static/event?id='+id);
|
||||||
|
a.href = '/static/event?id='+id;
|
||||||
a.innerHTML = content;
|
a.innerHTML = content;
|
||||||
}
|
}
|
||||||
row.insertCell().appendChild(a);
|
row.insertCell().appendChild(a);
|
||||||
@@ -155,6 +156,7 @@ function showOverlay(url){
|
|||||||
closeBtn.innerHTML = '✖';
|
closeBtn.innerHTML = '✖';
|
||||||
closeBtn.title = 'close overlay';
|
closeBtn.title = 'close overlay';
|
||||||
div.appendChild(closeBtn);
|
div.appendChild(closeBtn);
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// adds or removes tag from set, updates shown tags
|
// adds or removes tag from set, updates shown tags
|
||||||
|
|||||||
Reference in New Issue
Block a user