Closing a modal window

teryhill wrote on Thursday, August 13, 2015:

Can anyone tell me best way to close a modal window? I have a modal that calls a program to save the information entered on the screen. I need to close the modal when the information ia saved. This modal sits on top of the demographics screen.

Thanks

Terry

mdsupport wrote on Friday, August 14, 2015:

It would depend on what you are using to open the window - fancybox/jquery/qtip2/… Each provides a way to close the dialog gracefully without any memory leaks.

teryhill wrote on Friday, August 14, 2015:

Code snippet of what I am trying to do HTML

Javascript
$(".dontsave").on(‘click’,function() { $.modal.close(); });

mdsupport wrote on Friday, August 14, 2015:

Without looking at the code to see how “.modal” selector object was constructed, it is hard to comment. From syntax it looks like fancybox - in which case correct way would be $.modal.close(true);