jqueryui对话框将在其他对话框后打开

时间:2019-11-22 17:13:56

标签: jquery jquery-ui

我在让jqueryui对话框在已经打开的其他对话框之前打开时遇到问题。

我最近将我们的网站升级为使用jquery版本v3.4.1和jqueryui版本1.12.1。在此升级之前,它工作正常,但现在不行。

我使用弹出窗口模式显示其他html元素。...然后,我在该弹出窗口中也具有打开另一个弹出框的链接。现在,如果我单击模式弹出窗口内的链接,则会打开另一个链接,但该链接隐藏在我刚刚单击的模式弹出窗口后面。

这是我初始化对话框的方式:

$("#modal_popup_detail").dialog({

                bgiframe: true,
                autoOpen: false,
                stack: true, //Puts in front of other dialog's that may be open
                height:h_full_dialog,
                width: w_full_dialog,
                minWidth: w_full_dialog,
                modal: true,
                dialogClass: 'jqueryui_dialog_bg',
                open: function(e) {
                    $(e.target).prev(".ui-dialog-titlebar").addClass("jqueryui_dialog_title_bar");
                    $(e.target).prev(".ui-dialog-titlebar").find("span").addClass("jqueryui_dialog_title"); 

                },
                close: function () {$(this).empty();}
            });

这就是我叫对话框的方式:

$("#modal_popup_detail").dialog("open");

有什么办法解决这个问题吗?

预先感谢

0 个答案:

没有答案