eagle67 / lhgdialog

Automatically exported from code.google.com/p/lhgdialog
0 stars 0 forks source link

弹出两个窗口时,子窗口关闭,则父窗口未及时激活,父窗口中的按钮需要点击两次才能正常操作 #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.首先 打开一个弹出窗口
2. 在1中的弹出窗口中点击按钮,再弹出一个子弹出窗口
3. 关闭后弹出的子窗口
4,继续在父弹出窗口上操作按钮,则需要点击两次,才能激�
��按钮

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by oceangu2010 on 7 Nov 2012 at 8:00

Attachments:

GoogleCodeExporter commented 9 years ago
这个问题有解决方案了吗?

Original comment by zdg2...@gmail.com on 26 Mar 2013 at 10:45

GoogleCodeExporter commented 9 years ago
找了个偷懒的方法如下:

如果是作者只需在源代码中close方法中进行完善下就行。
个人没有找到W.$.dialog如何获取的方法。

修改 first.html的js 方法

function opchild()
{
    W.$.dialog({id:'CLHG1976D',content:'url:content/second.html',lock:true,parent:api,width:200,height:100,
        title:'Test',
        close:function(){
            W.$.dialog({ id: 'LHG1976D'  });
        }
        });
}

Original comment by javaDB....@gmail.com on 25 Jul 2013 at 9:11