留言板

modal.close() not working

Pankaj Kumar,修改在7 年前。

modal.close() not working

Regular Member 帖子: 101 加入日期: 14-7-27 最近的帖子
Hi Team,

I am creating the popup using Liferay Modal.But when i am invoking modal.close() its not working.

var modal = new A.Modal({
bodyContent:"Test",
centered: true,
destroyOnClose: true,
destroyOnHide: true,
modal: true,
width: 150,


Please help me how i can fix.

Thanks & Regards,
Pankaj Semwal
thumbnail
Kyle Joseph Stiemann,修改在7 年前。

RE: modal.close() not working

Liferay Master 帖子: 760 加入日期: 13-1-14 最近的帖子
Hi Pankaj,
Modal.close() does not exist, use Modal.hide() instead.

Also, you seem to be using an old API for AlloyUI 1.5's Dialog, rather than the current API for AlloyUI 2.0/3.0's Modal, so some of your attributes (such as destroyOnClose) may be ignored.

- Kyle
Pankaj Kumar,修改在7 年前。

RE: modal.close() not working

Regular Member 帖子: 101 加入日期: 14-7-27 最近的帖子
I tried but its not working.
thumbnail
Kyle Joseph Stiemann,修改在7 年前。

RE: modal.close() not working

Liferay Master 帖子: 760 加入日期: 13-1-14 最近的帖子
Hi Pankaj,

You haven't provided enough information to debug your problem. Please provide all error messages and the shortest, simplest (preferably runnable) example that reproduces your issue. Here's a runnable example in jsbin which demonstrates dialog.hide() working correctly. You can edit that example to create your own.

- Kyle
Pankaj Kumar,修改在7 年前。

RE: modal.close() not working

Regular Member 帖子: 101 加入日期: 14-7-27 最近的帖子
Hi Kyle,

Now its working.I forgot to clear my browser cache......emoticon
thumbnail
Kyle Joseph Stiemann,修改在7 年前。

RE: modal.close() not working

Liferay Master 帖子: 760 加入日期: 13-1-14 最近的帖子
Thanks for letting me know emoticon Glad it's working for you.

- Kyle