What is the PopUp pro "close" event called?

We're using some custom JS to send opt-in emails to our ESP, and we're handling the "popup close" event manually. Right now we're just hiding the popup container with CSS but that's not resetting the browser scroll bar. How can we fire a "close" event without this happening?

http://bottomlinehealth.com/sample-page/

Thanks,
Jeff

  • Ash
    • WordPress Hacker

    Hello @Jeff

    Welcome to WPMU community!

    I hope you are well today and thanks for asking the question.

    When you want to close the popup, just use this code:

    $('.wdpu-close').click();

    Example:

    jQuery(function($) {
      $('#selector').any_event_cal(function() {
        // Do stuff what you want
    
        // Now close the popup
       $('.wdpu-close').click();
      });
    });

    Hope it helps :slight_smile: Please feel free to ask more question if you have any.

    Cheers
    Ash

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.