The ModalDialogAPI adds support for handling modal dialogs. It has to be used e.g. for alert boxes and other commonDialog
instances.
Class overview
Class Name | Description |
---|---|
modalDialog | Class to handle modal dialogs. |
Examples
// Include necessary modules var RELATIVE_ROOT = '../../shared-modules'; var MODULE_REQUIRES = ['ModalDialogAPI']; var setupModule = function(module) { module.controller = mozmill.getBrowserController(); } var testModalDialog = function() { var md = new ModalDialogAPI.modalDialog(); md.start(callbackHandler); // Code that opens a modal dialog, e.g. click or keypress } var callbackHandler = function(controller) { // Code to be executed in the modal dialog }