diff gpp/templates/forums/jump_box.js @ 358:768e3568addf

Fixing #172; add a forums jump box.
author Brian Neal <bgneal@gmail.com>
date Fri, 04 Mar 2011 03:50:07 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gpp/templates/forums/jump_box.js	Fri Mar 04 03:50:07 2011 +0000
@@ -0,0 +1,11 @@
+<script type="text/javascript">
+//<![CDATA[
+$(document).ready(function() {
+   var jumpSelect = $('#forum-jumpbox-select')[0];
+   $('#forum-jumpbox-button').click(function() {
+      var dest = jumpSelect.options[jumpSelect.selectedIndex].value;
+      window.location = dest;
+   });
+});
+//]]>
+</script>