Side navigation
#112 closed bug (fixed)
Opened July 29, 2006 09:43PM UTC
Closed July 30, 2006 11:09PM UTC
Last modified June 20, 2007 02:23AM UTC
toggle(); no longer works (properly?)
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.0 |
Component: | effects | Version: | 1.0 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Revision 165
The following lines of code are messing up the toggle function in certain cases:
toggle: function(){
var d = jQuery.css(this,"display");
$(this)[ !d || d == "none" ? "show" : "hide" ]();
},
When toggle is used like this:
$("#login_link").toggle(
function(){$("#loginbox").slideDown("fast");},
function(){$("#loginbox").slideUp("fast");}
);
The #login_link is being hidden right off the bat, and it seems theres
no way to achieve the above effect with the new functionality of
toggle.
Fixed in SVN rev 168.