Remove filter attribute after jQuery UI dialog is finished opening
Posted
by womp
on Stack Overflow
See other posts from Stack Overflow
or by womp
Published on 2010-03-18T19:25:25Z
Indexed on
2010/03/18
19:31 UTC
Read the original article
Hit count: 523
Using jQuery UI 1.8rc3 combined with the new jquery.effects.fade.js
code, I've been able to finally apply fade-in and fade-out effects to opening the UI Dialog widgets. Hooray!
$dialog.dialog({
show: { effect: "fade", options: {}, speed: 150 }
}
This works great - unfortunately, there's the known IE7 & 8 bug where the ClearType gets turned off by the application of an empty filter:
style attribute after the fade effect is finished.
I have the code to remove the filter attribute, I just can't find a good way to hook it into the event chain. The dialog's "open" and "focus" events are too soon. I need something like a "dialog opening animation is finished" callback.
How can I hook up a callback to the end of the opening effect for a dialog?
© Stack Overflow or respective owner