more js to lib/shimmie.js

This commit is contained in:
Shish
2012-02-09 14:38:32 +00:00
parent efa7f4f17c
commit 8d15ae8c0a
2 changed files with 11 additions and 21 deletions

View File

@ -45,6 +45,14 @@ $(document).ready(function() {
$("#commentBox").DefaultValue("Comment");
$("#tagBox").DefaultValue("tagme");
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;
}
});