bug #3305883 [interface] Table is dropped regardless of confirmation

This commit is contained in:
Madhura Jayaratne
2011-05-22 22:01:47 +05:30
parent 16305005c5
commit e936257d44
3 changed files with 8 additions and 3 deletions

View File

@@ -263,10 +263,15 @@ $(document).ready(function() {
*/
$("#sqlqueryform.ajax").live('submit', function(event) {
event.preventDefault();
$form = $(this);
if (! checkSqlQuery($form[0])) {
return false;
}
// remove any div containing a previous error message
$('.error').remove();
$form = $(this);
var $msgbox = PMA_ajaxShowMessage();
PMA_prepareForAjaxRequest($form);