Skip to content

Instantly share code, notes, and snippets.

@TiuTalk
Forked from anonymous/gist:2782458
Created May 24, 2012 16:10
Show Gist options
  • 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