X-Git-Url: https://git.exim.org/exim-website.git/blobdiff_plain/7e380e72021a4fcc57295367a71f14176343ad23..1fa8d85e79abda7ae7e994d1f30aa0a3693de1ce:/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);