Skip to content

Instantly share code, notes, and snippets.

@hypomodern
Created March 9, 2010 16:54
Show Gist options
  • Save hypomodern/326797 to your computer and use it in GitHub Desktop.
Save hypomodern/326797 to your computer and use it in GitHub Desktop.
[chained_from_above].live("quickactions.close", function() {
$(this).removeClass("active");
var disclosure = $(this).siblings(".quickactions_menu").first();
disclosure.hide();
});
$("body").bind("click", function() {
// I'm sure there's a better jQuery way to specify a graph of nodes that should not trigger the close behavior, but
// I took the easy way out:
if($(this).is("body")) {
$(".menu_toggle").trigger("quickactions.close");
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment