mirror of
https://github.com/oupala/apaxy.git
synced 2025-08-09 12:56: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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user