如何在不阻止ui的情况下关闭对话框 [英] how to close a dialogbox without blocking ui

查看:109
本文介绍了如何在不阻止ui的情况下关闭对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想关闭一个jquery对话框而不阻塞UI或重新加载页面.
在关闭像这样的jquery对话框时:

I want to close a jquery dialogbox without blocking the UI or reloading the page.
On closing a jquery dialog like this:

buttons: {
                       "Close": function () {
                           e.preventDefault();
                           $(".ui-dialog").remove();
                           $(".ui-widget-overlay").remove();
                       }



对话框被隐藏,但是后面的UI被阻止.因此,我无法单击其他链接..
也尝试过



the dialog gets hideen but,the UI behind gets blocked. hence i cant click on other links..
Also tried

buttons: {
                        "Close": function () {
                            $("#quickfillDialog").dialog("close");
                        }



那也不能解决问题.请提出建议!



that also doesnt solve the issue. Please suggest!!

推荐答案

(" ).删除();


(" .ui-widget-overlay").
(".ui-widget-overlay").remove(); }



对话框被隐藏,但是后面的UI被阻止.因此,我无法单击其他链接..
也尝试过



the dialog gets hideen but,the UI behind gets blocked. hence i cant click on other links..
Also tried

buttons: {
                        "Close": function () {


(" ).dialog(" 关闭"); }
("#quickfillDialog").dialog("close"); }



那也不能解决问题.请提出建议!



that also doesnt solve the issue. Please suggest!!


这篇关于如何在不阻止ui的情况下关闭对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆