Foros de discusión
modal.close() not working
Pankaj Kumar, modificado hace 7 años.
modal.close() not working
Regular Member Mensajes: 101 Fecha de incorporación: 27/07/14 Mensajes recientes
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 hace 7 años.
RE: modal.close() not working
Liferay Master Mensajes: 760 Fecha de incorporación: 14/01/13 Mensajes recientes
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 hace 7 años.
RE: modal.close() not working
Regular Member Mensajes: 101 Fecha de incorporación: 27/07/14 Mensajes recientes
I tried but its not working.
Kyle Joseph Stiemann, modificado hace 7 años.
RE: modal.close() not working
Liferay Master Mensajes: 760 Fecha de incorporación: 14/01/13 Mensajes recientes
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 hace 7 años.
RE: modal.close() not working
Regular Member Mensajes: 101 Fecha de incorporación: 27/07/14 Mensajes recientes
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 hace 7 años.
RE: modal.close() not working
Liferay Master Mensajes: 760 Fecha de incorporación: 14/01/13 Mensajes recientes
Thanks for letting me know Glad it's working for you.
- Kyle
- Kyle