add method to close the modal dialog
This commit is contained in:
parent
8e4dce0dbb
commit
e03a441ded
1 changed files with 14 additions and 0 deletions
|
|
@ -454,6 +454,20 @@ WebGUI.Admin.prototype.openModalDialog
|
|||
this.modalDialog = dialog;
|
||||
};
|
||||
|
||||
/**
|
||||
* closeModalDialog( )
|
||||
* Close the current modal dialog
|
||||
*/
|
||||
WebGUI.Admin.prototype.closeModalDialog
|
||||
= function ( ) {
|
||||
if ( !this.modalDialog ) {
|
||||
return; // Can't close what isn't open
|
||||
}
|
||||
|
||||
this.modalDialog.destroy();
|
||||
this.modalDialog = null;
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
* WebGUI.Admin.LocationBar
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue