[jQuery] thickbox fix + compressing the new jquery
Hi,
jquery newbie here!
I just installed thickbox (
http://codylindley.com/Javascript/257/thickbox-one-box-to-rule-them-all )
and it uses jquery.
I had to use a workaround to fix a bug (?) in thickbox : Firefox shows the
complete image *before* the effect (slideDown) starts. So it shows the
image, hides it, and starts the slideDown effect. The quick fix I found to
prevent the image to be displayed before the slideDown effect is to hide
"z.el", in jquery's "Get the current size" function:
----------------
// Get the current size
z.cur = function(){
// hide element
z.el.style.visibility = "hidden" ;
var res = parseFloat( jQuery.css(z.el,prop) );
// back to visible
z.el.style.visibility = "visible" ;
return res ;
};
--------------
I have no idea if this workaround is going to affect other use of jquery but
I only use jquery with thickbox for now, so until I find a better fix for my
current problem I would use those modifications.
My question: is there a way I can get a compressed version of jquery with
those modifications included? It doesn't look easy to change the compressed
version directly! Is it possible?
I could use dojo's shrinksafe ( http://alex.dojotoolkit.org/shrinksafe/ )
but your compression seems a lot better.
Thanks for the help!
JL
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/