Let people select older versions of the documentation
[exim-website.git] / templates / web / docs.js
diff --git a/templates/web/docs.js b/templates/web/docs.js
new file mode 100644 (file)
index 0000000..8e604bc
--- /dev/null
@@ -0,0 +1,10 @@
+(function($){
+       $('p.manual_info select').each(function(){
+               $(this).change(function(e){
+                       if( $(this).val().match(/^[0-9\.]+$/) ){
+                               var href = $(this).parent().find('a').attr('href').replace('-current/','-'+$(this).val()+'/');
+                               document.location.href=href;
+                       }
+               });
+       });
+})(jQuery);