Skip to main content

Busy Overlay

It is important that updates are only processed once, so any "update" or "save" buttons should be disabled while the associated PUT/POST/DELETE requests are being processed to prevent multiple submissions of the same request. To achieve this we display a "busy overlay" on top of the plugin using the following methods:

BUSY()

This method will display the busy overlay with loading graphic on top of the plugin page and move focus to the overlay. This will prevent the user from clicking on buttons or using keyboard navigation within the plugin page until the NOTBUSY() method is called.

It also sets the window["ISBUSY"] flag to true.

NOTBUSY()

This method will hide the loading overlay and restore focus to the last element the user interacted with.

It also sets the window["ISBUSY"] flag to false.