refactor search sidebar, add search permalink

This commit is contained in:
Oliver Gorwits
2012-01-07 12:37:09 +00:00
parent 229423996a
commit 7e502a39b8
10 changed files with 28 additions and 25 deletions

View File

@@ -4,6 +4,7 @@
function do_search (event, tab) {
var form = '#' + tab + '_form';
var target = '#' + tab + '_pane';
var mark = '#' + tab + '_bookmark';
// stop form from submitting normally
event.preventDefault();
@@ -32,6 +33,8 @@
);
return;
}
// looks good, update the bookmark for this search
$(mark).attr('href', '/search?' + query);
}
);
}