js scrutinizer fixes
This commit is contained in:
parent
b75638cace
commit
6486a4757f
2 changed files with 9 additions and 6 deletions
|
@ -69,7 +69,7 @@ var Tagger = {
|
|||
tag : {
|
||||
submit : function () {
|
||||
var l = this.list.childNodes.length;
|
||||
var tags = Array();
|
||||
var tags = [];
|
||||
for(var i=0; i<l; i++) {
|
||||
var s_tag = this.list.childNodes[i].firstChild.data;
|
||||
tags.push(s_tag);
|
||||
|
|
|
@ -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;
|
||||
});
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Reference in a new issue