doAction( "hide_overlay", $overlay );
The background overlay was removed from the DOM
Params
$overlay
- The jQuery object of the overlay element.
Examples
// Display a console message after the modal overlay was hidden again.
DiviArea.addAction( 'hide_overlay', function( overlay ) {
console.log('The overlay is hidden again!')
});
Notes
The $overlay
parameter is a reference to the permanent jQuery overlay element. Though it is hidden, it will not be destroyed and can be accessed and manipulated for the next time it is displayed.