js scrutinizer fixes

This commit is contained in:
Daku
2016-06-19 05:00:09 +01:00
parent b75638cace
commit 6486a4757f
2 changed files with 9 additions and 6 deletions

View File

@ -89,11 +89,14 @@ $(document).ready(function() {
});
if(document.location.hash.length > 3) {
query = document.location.hash.substring(1);
a = document.getElementById("prevlink");
a.href = a.href + '?' + query;
a = document.getElementById("nextlink");
a.href = a.href + '?' + query;
var query = document.location.hash.substring(1);
$('#prevlink').attr('href', function(i, attr) {
return attr + '?' + query;
});
$('#nextlink').attr('href', function(i, attr) {
return attr + '?' + query;
});
}
/*