X-Git-Url: https://git.exim.org/exim-website.git/blobdiff_plain/52b33ebd755ffe58ffa039c47ba2538a9c6af6f3..b4312d37052740bbaf66474cb939f0db293e08f6:/templates/web/doc/chapter.js diff --git a/templates/web/doc/chapter.js b/templates/web/doc/chapter.js index 47c2460..1e81a84 100644 --- a/templates/web/doc/chapter.js +++ b/templates/web/doc/chapter.js @@ -2,6 +2,7 @@ (function ($) { var click_func = function (e) { + e.stopPropagation(); if ($('#toc').data('opened')) { $('#toc > *').animate({ left: '-=' + $('#toc > ul').width() + 'px' @@ -15,6 +16,10 @@ } }; + $('body').click(function () { + if( $('#toc').data('opened') ) $('#toc > img').mousedown(); + }); + var type = document.location.pathname.match(/\/doc\/html\/spec_html\/filter/) ? 'filter' : 'spec'; // Get the relevant table of contents @@ -47,4 +52,4 @@ }); }); }); -})(jQuery); \ No newline at end of file +})(jQuery);