Scenario:
View Page as modal.
Standard behavior:
When user clicks outside modal, the modal will NOT dismissed.
How to change this behavior (i.e. when user clicks outside modal, the modal will dismissed) ?
My goal is to use View Page to display additional fields relating to the record, without add/edit/delete links in the modal. So the modal is functioned like a pop-up. Ideally, user want this kind of pop-up to be easily dismissed.
I know this can be achieved by using regular bootstrap modal, but I prefer to use View Page modal to have easy access to server events and jsrender.
If I'm not mistaken bootstrap modal has arguments for this in the call. The default is to dismiss modal when click event occurs anywhere outside the modal. I think PHPMaker's script make non-default call to modal. What is the script and how to make it call the default only for View Page modal? I surely need the standard-behavior for add/edit page to prevent accidental dismissed.
Thank you.