Overlay onClose

A very cheap way of doing it...

Add this to the overlay template:
HTML:
<a href="{xen:link 'link/to/page'}" class="button OverlayCloser">{xen:phrase close}</a>
 
A very cheap way of doing it...

Add this to the overlay template:
HTML:
<a href="{xen:link 'link/to/page'}" class="button OverlayCloser">{xen:phrase close}</a>

Thanks. I'd considered that, but I didn't think (?) it would work if I close the overlay if I simply 'escaped' out.
 
Yes, that is the gotcha, I think.

A more advanced way is doing it is with Javascript. There is an event triggered called onBeforeClose. Bind a function to that event and that should cover all eventualities.
 
Back
Top Bottom