1
0
mirror of https://github.com/oupala/apaxy.git synced 2025-08-09 21:26:51 +02:00

fix: filter content works again

This commit fixes a bug where the filter content was not working any more on recent browsers.

close #125
This commit is contained in:
oupala
2019-03-22 15:06:43 +01:00
committed by GitHub
parent 2ad82a41ad
commit f8670f0d59

View File

@@ -2,9 +2,8 @@
var uri = window.location.pathname.substr(1);
if (uri.substring(uri.length - 1) !== '/') {
var indexes = document.getElementsByClassName('indexcolname');
var i = indexes.length;
while (i) {
var a = indexes[i].getElementsByTagName('a')[0];
for (let i of indexes) {
var a = i.getElementsByTagName('a')[0];
a.href = '/' + a.getAttribute('href', 2);
}
}