JS Functions

DiviAreaItem.addActionOnce()

Same as addAction, but the callback is only called once and then is unhooked again

DiviArea.Data.getRealId()

Returns a sanitized area ID or false, when the ID does not belong to an Area.

DiviArea.getOverlay()

Returns the jQuery element of the modal overlay.

DiviAreaItem.attr()

Shortcut to `jQuery.attr()` on the Area.

DiviArea.Debug.verbose()

Output debug info in the JS console, when JS verbose debugging is enabled

DiviArea.applyFilters()

Applies all previously registered filter hooks and returns the filtered value. Params Returns Returns the filtered value. Notes No notes

DiviArea.Hooks.addActionOnce()

This is an alias of DiviArea.addActionOnce().

DiviArea.Hooks.removeFilter()

This is an alias of DiviArea.removeFilter().

DiviArea.Data.getArea()

This is an alias of DiviArea.getArea().

DiviArea.Core.closeMainMenu()

Closes Divi´s Full-Page or Slide-In menu.