Doc Text:
|
Previously, the user interface plugin, showDialog API, was implemented using browser-specific (non-modal) pop up windows; that is, windows opened via standard window.open JavaScript API. As a result, custom dialogs triggered by user interface plugins did not look and feel the same as standard WebAdmin dialogs, were non-modal, and could be closed simply via browser-specific popup window close icon.
Now, the showDialog API is implemented using WebAdmin-specific dialog infrastructure, allowing custom dialogs triggered by user interface plugins to look and feel the same as standard WebAdmin dialogs, be modal just like standard WebAdmin dialogs, and provide control over closing the custom dialog. Additionally, there is now an API for updating the dialog content URL, as well as closing the custom dialog programatically (via JavaScript).
This change also adds support for cross-window cross-origin communication that can be utilized by user interface plugins, such as custom content. It also talks back to the plugin code via a WebAdmin (parent) window. This enables custom content to pass arbitrary messages back to given plugin(s).
|