fix single quote in filenames screwing everything up
This commit is contained in:
parent
1f5eb2bc30
commit
5eb70cefd5
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user