diff options
author | Madhura Jayaratne <madhura.cj@gmail.com> | 2012-04-29 20:58:34 +0400 |
---|---|---|
committer | Madhura Jayaratne <madhura.cj@gmail.com> | 2012-04-29 20:58:34 +0400 |
commit | 68a4c2b24034e32f2822308ce26ad825e826438d (patch) | |
tree | ddfc30f64e85b1fefef7c341360fc01516ed9b60 /js/db_structure.js | |
parent | 243d59081e83622814ddbce92f2eb7882546099c (diff) |
remove() the dialog properly. Now closing the dialog with the X have the same effect as closing it with buttons.
Diffstat (limited to 'js/db_structure.js')
-rw-r--r-- | js/db_structure.js | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/js/db_structure.js b/js/db_structure.js index 5adff6ef27..e0b786495c 100644 --- a/js/db_structure.js +++ b/js/db_structure.js @@ -144,10 +144,14 @@ $(function() { */ var button_options = {}; // in the following function we need to use $(this) - button_options[PMA_messages['strCancel']] = function() {$(this).dialog('close').remove();} + button_options[PMA_messages['strCancel']] = function() { + $(this).dialog('close'); + }; var button_options_error = {}; - button_options_error[PMA_messages['strOK']] = function() {$(this).dialog('close').remove();} + button_options_error[PMA_messages['strOK']] = function() { + $(this).dialog('close'); + }; var $msgbox = PMA_ajaxShowMessage(); @@ -162,6 +166,9 @@ $(function() { width: 900, modal: true, open: PMA_verifyColumnsProperties, + close: function() { + $(this).remove(); + }, buttons : button_options_error })// end dialog options } else { @@ -173,6 +180,9 @@ $(function() { width: 900, modal: true, open: PMA_verifyColumnsProperties, + close: function() { + $(this).remove(); + }, buttons : button_options });// end dialog options //Remove the top menu container from the dialog |