Foren
modal.close() not working
Pankaj Kumar, geändert vor 7 Jahren.
modal.close() not working
Regular Member Beiträge: 101 Beitrittsdatum: 27.07.14 Neueste Beiträge
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
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
Kyle Joseph Stiemann, geändert vor 7 Jahren.
RE: modal.close() not working
Liferay Master Beiträge: 760 Beitrittsdatum: 14.01.13 Neueste Beiträge
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
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, geändert vor 7 Jahren.
RE: modal.close() not working
Regular Member Beiträge: 101 Beitrittsdatum: 27.07.14 Neueste Beiträge
I tried but its not working.
Kyle Joseph Stiemann, geändert vor 7 Jahren.
RE: modal.close() not working
Liferay Master Beiträge: 760 Beitrittsdatum: 14.01.13 Neueste Beiträge
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
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, geändert vor 7 Jahren.
RE: modal.close() not working
Regular Member Beiträge: 101 Beitrittsdatum: 27.07.14 Neueste Beiträge
Hi Kyle,
Now its working.I forgot to clear my browser cache......
Now its working.I forgot to clear my browser cache......
Kyle Joseph Stiemann, geändert vor 7 Jahren.
RE: modal.close() not working
Liferay Master Beiträge: 760 Beitrittsdatum: 14.01.13 Neueste Beiträge
Thanks for letting me know Glad it's working for you.
- Kyle
- Kyle