SP.UI.ModalDialog.commonModalDialogClose(dialogResult, returnVal) Method
SharePoint 2010
Closes the most recently opened modal dialog with the specified dialog result and return value.
SP.UI.ModalDialog.commonModalDialogClose(dialogResult, returnVal);
dialogResult
Type: SP.UI.DialogResult
One of the enumeration values specifying the result of the modal dialog.
returnVal
Type: Object
The return value of the modal dialog.
This method closes the modal dialog opened with the SP.UI.ModalDialog.commonModalDialogOpen(url, options, callback, args) Method with the dialog result specified by the dialogResult parameter. It passes the return value specified by the returnVal parameter to the callback method specified in the call to the commonModalDialogOpen method.