js scrutinizer fixes
This commit is contained in:
parent
b75638cace
commit
6486a4757f
@ -69,7 +69,7 @@ var Tagger = {
|
|||||||
tag : {
|
tag : {
|
||||||
submit : function () {
|
submit : function () {
|
||||||
var l = this.list.childNodes.length;
|
var l = this.list.childNodes.length;
|
||||||
var tags = Array();
|
var tags = [];
|
||||||
for(var i=0; i<l; i++) {
|
for(var i=0; i<l; i++) {
|
||||||
var s_tag = this.list.childNodes[i].firstChild.data;
|
var s_tag = this.list.childNodes[i].firstChild.data;
|
||||||
tags.push(s_tag);
|
tags.push(s_tag);
|
||||||
|
@ -89,11 +89,14 @@ $(document).ready(function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if(document.location.hash.length > 3) {
|
if(document.location.hash.length > 3) {
|
||||||
query = document.location.hash.substring(1);
|
var query = document.location.hash.substring(1);
|
||||||
a = document.getElementById("prevlink");
|
|
||||||
a.href = a.href + '?' + query;
|
$('#prevlink').attr('href', function(i, attr) {
|
||||||
a = document.getElementById("nextlink");
|
return attr + '?' + query;
|
||||||
a.href = a.href + '?' + query;
|
});
|
||||||
|
$('#nextlink').attr('href', function(i, attr) {
|
||||||
|
return attr + '?' + query;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user