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:
@@ -2,9 +2,8 @@
|
|||||||
var uri = window.location.pathname.substr(1);
|
var uri = window.location.pathname.substr(1);
|
||||||
if (uri.substring(uri.length - 1) !== '/') {
|
if (uri.substring(uri.length - 1) !== '/') {
|
||||||
var indexes = document.getElementsByClassName('indexcolname');
|
var indexes = document.getElementsByClassName('indexcolname');
|
||||||
var i = indexes.length;
|
for (let i of indexes) {
|
||||||
while (i) {
|
var a = i.getElementsByTagName('a')[0];
|
||||||
var a = indexes[i].getElementsByTagName('a')[0];
|
|
||||||
a.href = '/' + a.getAttribute('href', 2);
|
a.href = '/' + a.getAttribute('href', 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user