[#692] only slide the first ul element when toggling header menu items. that way we won't interfere with underlying structures

pull/41/head
jwollert 13 years ago committed by Eric Davis
parent 89425c5b42
commit 929f1eee99
  1. 4
      public/javascripts/application.js
  2. 1
      public/stylesheets/chosen.css

@ -582,7 +582,7 @@ jQuery(document).ready(function($) {
//Close all other open menus
//Used to work around the rendering bug
jQuery("input#username").blur();
$("#account-nav > li.drop-down.open").toggleClass("open").find("ul").mySlide();
$("#account-nav > li.drop-down.open").toggleClass("open").find("> ul").mySlide();
$(this).slideAndFocus();
return false;
}
@ -592,7 +592,7 @@ jQuery(document).ready(function($) {
});
jQuery("#account-nav > li.drop-down").click(function() {
if (($("#account-nav > li.drop-down.open").get(0) !== $(this).get(0))){
$("#account-nav > li.drop-down.open").toggleClass("open").find("ul").mySlide();
$("#account-nav > li.drop-down.open").toggleClass("open").find("> ul").mySlide();
}
$(this).slideAndFocus();
$("#account-nav").toggleClass("hover");

@ -221,7 +221,6 @@
color: #222;
background-color: white;
border:none;
display:none;
height:auto !important;
width:100%;
}

Loading…
Cancel
Save