mirror of
https://github.com/oupala/apaxy.git
synced 2025-08-18 17:51:17 +02:00
@@ -10,4 +10,14 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
// grab the 2nd child and add the parent class. tr:nth-child(2)
|
// grab the 2nd child and add the parent class. tr:nth-child(2)
|
||||||
document.getElementsByTagName('tr')[1].className = 'parent';
|
document.getElementsByTagName('tr')[1].className = 'parent';
|
||||||
|
// fix links when not adding a / at the end of the URI
|
||||||
|
var uri = window.location.pathname.substr(1);
|
||||||
|
if (uri.substring(uri.length-1) != '/'){
|
||||||
|
var indexes = document.getElementsByClassName('indexcolname'),
|
||||||
|
i = indexes.length;
|
||||||
|
while (i--){
|
||||||
|
var a = indexes[i].getElementsByTagName('a')[0];
|
||||||
|
a.href = '/' + uri + '/' + a.getAttribute('href',2);
|
||||||
|
}
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
Reference in New Issue
Block a user