Mercurial > public > sg101
diff gpp/templates/forums/forum_query.js @ 280:21d2ca3b4bf7
Fixing #121. The forum query pulldown should appear on all forum query pages for consistency.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 03 Oct 2010 20:44:09 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gpp/templates/forums/forum_query.js Sun Oct 03 20:44:09 2010 +0000 @@ -0,0 +1,11 @@ +<script type="text/javascript"> +//<![CDATA[ + $(document).ready(function() { + var navSelect = $('#forum-query-select')[0]; + $('#forum-query-button').click(function() { + var dest = navSelect.options[navSelect.selectedIndex].value; + window.location = dest; + }); + }); +//]]> +</script>