more jquery magic, less inline scripting

This commit is contained in:
Shish
2012-02-09 14:45:18 +00:00
parent 8d15ae8c0a
commit 339f2b0497
6 changed files with 8 additions and 43 deletions

View File

@ -29,7 +29,7 @@ $(document).ready(function() {
$("time").timeago();
$('.search_input').DefaultValue('Search');
$('.tag_autocomplete').autocomplete(base_href + '/api/internal/tag_list/complete', {
$('.autocomplete_tags').autocomplete(base_href + '/api/internal/tag_list/complete', {
width: 320,
max: 15,
highlight: false,
@ -43,9 +43,6 @@ $(document).ready(function() {
var sections=get_sections();
for(var i=0;i<sections.length;i++) toggle(sections[i]);
$("#commentBox").DefaultValue("Comment");
$("#tagBox").DefaultValue("tagme");
if(document.location.hash.length > 3) {
query = document.location.hash.substring(1);
a = document.getElementById(\"prevlink\");