Created
March 9, 2010 16:54
-
-
Save hypomodern/326797 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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