Validate missing table name on table creation

This commit is contained in:
Marc Delisle
2011-02-20 07:48:06 -05:00
parent aa0d3cfc4a
commit 8dee199672

View File

@@ -831,6 +831,14 @@ function checkTableEditForm(theForm, fieldsCnt)
return false;
}
// at least this section is under jQuery
if ($("input.textfield[name='table']").val() == "") {
alert(PMA_messages['strFormEmpty']);
$("input.textfield[name='table']").focus();
return false;
}
return true;
} // enf of the 'checkTableEditForm()' function