X-Git-Url: https://git.exim.org/exim-website.git/blobdiff_plain/8e4b09729f6a0cefe6c78bb38da734d11aa588ad..d9c525724ff459fb8e7fbe1307c59b72f18fc01b:/templates/web/docs.js diff --git a/templates/web/docs.js b/templates/web/docs.js new file mode 100644 index 0000000..8e604bc --- /dev/null +++ b/templates/web/docs.js @@ -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);