git://git.exim.org
/
exim-website.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46290f9
)
Collapse TOC if anywhere on the page is clicked
author
Mike Cardwell
<github@grepular.com>
Mon, 19 Jul 2010 19:07:47 +0000
(
03:07
+0800)
committer
Nigel Metheringham
<nm9762github@muesli.org.uk>
Mon, 19 Jul 2010 20:01:21 +0000
(
04:01
+0800)
templates/web/doc/chapter.js
patch
|
blob
|
history
diff --git
a/templates/web/doc/chapter.js
b/templates/web/doc/chapter.js
index 47c246041e3385910ca14637bae6b8d333760f58..1e81a848afef053a3bab27405caeb19e37f11eaa 100644
(file)
--- 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);