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.