fix(index): set reload link as attribute, not raw html
This commit is contained in:
parent
fa818bc386
commit
13cfd61c83
|
@ -93,12 +93,15 @@
|
||||||
+ "font-size:small;"
|
+ "font-size:small;"
|
||||||
+ "cursor: pointer'>" + showMoreText + "</a>"
|
+ "cursor: pointer'>" + showMoreText + "</a>"
|
||||||
+ " "
|
+ " "
|
||||||
+ "<a href='" + href + "' style='"
|
+ "<a id ='reloadLink' style='"
|
||||||
+ "text-decoration: underline;"
|
+ "text-decoration: underline;"
|
||||||
+ "font-size:small;"
|
+ "font-size:small;"
|
||||||
+ "'>reload now</a>"
|
+ "'>reload now</a>"
|
||||||
+ "</div>";
|
+ "</div>";
|
||||||
|
|
||||||
|
var reloadLink = document.getElementById('reloadLink');
|
||||||
|
reloadLink.setAttribute('href', href);
|
||||||
|
|
||||||
var showMoreElem = document.getElementById("showMore");
|
var showMoreElem = document.getElementById("showMore");
|
||||||
showMoreElem.addEventListener('click', function () {
|
showMoreElem.addEventListener('click', function () {
|
||||||
var moreInfoElem
|
var moreInfoElem
|
||||||
|
|
Loading…
Reference in New Issue