fix single quote in filenames screwing everything up

This commit is contained in:
iou1name 2018-09-13 15:54:26 -04:00
parent 1f5eb2bc30
commit 5eb70cefd5

View File

@ -36,7 +36,7 @@ function update_nav_items() {
document.getElementById('currentDirectory').innerText = nav_items.shift(); document.getElementById('currentDirectory').innerText = nav_items.shift();
let html_str = ''; let html_str = '';
for (let i = 0; i < nav_items.length; i++) { for (let i = 0; i < nav_items.length; i++) {
html_str += '<li><a href="javascript:void(0);" onclick="navigate(\'' + nav_items[i] + '\')">' + nav_items[i] + '</a></li>'; html_str += `<li><a href="javascript:void(0);" onclick="navigate(\`${nav_items[i]}\`)">${nav_items[i]}</a></li>`;
} }
document.getElementById('navItems').innerHTML = html_str; document.getElementById('navItems').innerHTML = html_str;
} }