doAction( "enabled_scrolling" )

doAction( "enabled_scrolling" );

Scrolling of the document was enabled again. This action is called at the end of DiviArea.Core.enableBodyScroll().

Examples

// Scroll to page top when scrolling is re-enabled (i.e., when the Popup was closed)
DiviArea.addAction( 'enabled_scrolling', function() {
    jQuery( 'html, body' ).animate( { scrollTop: 0 }, 400 );
});

Notes

This action is usually called, right before the overlay modal is hidden. This action is triggered directly before the hide_overlay action.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.