Fórum
modal.close() not working
Pankaj Kumar, modificado 7 Anos atrás.
modal.close() not working
Regular Member Postagens: 101 Data de Entrada: 27/07/14 Postagens Recentes
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, modificado 7 Anos atrás.
RE: modal.close() not working
Liferay Master Postagens: 760 Data de Entrada: 14/01/13 Postagens Recentes
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, modificado 7 Anos atrás.
RE: modal.close() not working
Regular Member Postagens: 101 Data de Entrada: 27/07/14 Postagens Recentes
I tried but its not working.
Kyle Joseph Stiemann, modificado 7 Anos atrás.
RE: modal.close() not working
Liferay Master Postagens: 760 Data de Entrada: 14/01/13 Postagens Recentes
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, modificado 7 Anos atrás.
RE: modal.close() not working
Regular Member Postagens: 101 Data de Entrada: 27/07/14 Postagens Recentes
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, modificado 7 Anos atrás.
RE: modal.close() not working
Liferay Master Postagens: 760 Data de Entrada: 14/01/13 Postagens Recentes
Thanks for letting me know Glad it's working for you.
- Kyle
- Kyle