1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to close the Overlay?

Discussion in 'XenForo Development Discussions' started by Marcus, Oct 29, 2012.

  1. Marcus

    Marcus Well-Known Member

    I opened an overlay editor with class="OverlayTrigger". The item is stored, inserted with AJAX on the page. But the Overlay is still there until the user clicks on the cross at the upper right. Does anyone know how to close the Overlay after submitting the data?

    The template the overlay is in is also used at the same page as an add-item-editor.
     
  2. Marcus

    Marcus Well-Known Member

    This code in the javascript handler hides the overlay
    $('.xenOverlay').hide();
    ... but the screen is still greyed out.
     
    vlom31 likes this.
  3. digitalpoint

    digitalpoint Well-Known Member

    Not sure if there's a specific method you could call to do it all in one, but the "grey out" effect can be removed with this:
    Code:
    $('#exposeMask').remove();
     
    vlom31 and Marcus like this.
  4. Marcus

    Marcus Well-Known Member

    That works !! :)
     

Share This Page