Skip to content

Instantly share code, notes, and snippets.

@2bj
Created September 8, 2011 14:39
Show Gist options
  • Save 2bj/1203546 to your computer and use it in GitHub Desktop.
Save 2bj/1203546 to your computer and use it in GitHub Desktop.
kremlin agendadropdown fix.
//e(".n11 i, .en11 i").unbind();
e(".n11 i, .en11 i").click(function(){
e(this).toggleClass("opened");
e('.agendadropdown p.allagenda').hide();
e(".agendadropdown").slideToggle(function(){
e('.agendadropdown p.allagenda').fadeIn("fast");
});
return false;
});
e(document).click(function(s){
tar=e(s.target);
if(!(tar.parents(".agendadropdown").length>0)&&!(tar.parents(".nav").length>0)&&!(tar.hasClass(".agendadropdown")))
{
e(".n11 i, .en11 i").removeClass("opened");
e('.agendadropdown p.allagenda').hide();
e(".agendadropdown").slideUp()
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment