Skip to content

Instantly share code, notes, and snippets.

@TiuTalk
Forked from anonymous/gist:2782458
Created May 24, 2012 16:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TiuTalk/2782464 to your computer and use it in GitHub Desktop.
Save TiuTalk/2782464 to your computer and use it in GitHub Desktop.
$('html').click(function() {
$('#top .open').removeClass('open');
});
$('.categories').click(function(event) {
event.preventPropagation();
});
$('.with-submenu a').click(function(event) {
event.preventDefault();
$('#top .open').removeClass('open');
$(this).parent().toggleClass('open');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment