Q.fn.show() not functioning correctly on visibility: hidden;
When I run show() on an element which is hidden it does absolutely
nothing, while show (especially without a speed argument) really
should make any element to 'show' imo.
I suggest the following code:
<code> show: function(speed,callback){
return speed ?
this.animate({
height: "show", width: "show", opacity: "show"
}, speed, callback) :
this.filter(":hidden").each(function(){
this.style.display = this.oldblock ? this.oldblock : "";
if ( jQuery.css(this,"display") == "none" )
this.style.display = "block";
if ( jQuery.css(this,"visibility") == "hidden" )
this.style.visibility = "visible";
}).end();
}
</code>