jQuery UI 对话框打开完成后删除过滤器属性
使用 jQuery UI 1.8rc3 与新的 jquery.effects.fade.js
代码相结合,我最终能够应用淡入和淡出效果来打开 UI 对话框小部件。万岁!
$dialog.dialog({
show: { effect: "fade", options: {}, speed: 150 }
}
这非常有效 - 不幸的是,有已知的 IE7 和 IE7。 8 错误,其中在淡入淡出效果完成后,通过应用空的 filter:
样式属性来关闭 ClearType。
我有删除过滤器属性的代码,我只是找不到将其挂接到事件链中的好方法。对话框的“打开”和“焦点”事件太早了。我需要类似“对话框打开动画完成”的回调。
如何将回调连接到对话框打开效果的末尾?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试将回调作为“show”参数对象的
complete
属性:我通过查看
jQuery.speed
的 jQuery(核心)源代码得到了这一点,即,我想一想,传递给show
的对象将被发送到哪里。Try putting your callback as the
complete
property of the "show" parameter object:I got that by looking at the jQuery (core) source for
jQuery.speed
which is, I think, where that object passed toshow
will get sent.