diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2011-09-16 09:26:34 +0100 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2011-09-16 12:09:35 +0100 |
commit | c13c5a717ad2ede8f51cc90c66daf8f573bf2ea4 (patch) | |
tree | 1c447e0dfdcde4da12251fd07786b937df4367fe /public/javascripts/general.js | |
parent | 71827c431a1a931c3e308f573b681f9dbd240483 (diff) |
Preserve search text when flipping between result types. Fixes #187.
Diffstat (limited to 'public/javascripts/general.js')
-rw-r--r-- | public/javascripts/general.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/public/javascripts/general.js b/public/javascripts/general.js index 3d6aae0d8..ab74cf318 100644 --- a/public/javascripts/general.js +++ b/public/javascripts/general.js @@ -36,4 +36,12 @@ $(document).ready(function() { }); $('.close-button').click(function() { $(this).parent().hide() }); + $('div#variety-filter a').each(function() { + $(this).click(function() { + var form = $('form#search_form'); + form.attr('action', $(this).attr('href')); + form.submit(); + return false; + }) + }) })
\ No newline at end of file |