From 8dee199672f16db79795ef208a85f6d93506c005 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sun, 20 Feb 2011 07:48:06 -0500 Subject: [PATCH] Validate missing table name on table creation --- js/functions.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/js/functions.js b/js/functions.js index 28e89f087..328c5581f 100644 --- a/js/functions.js +++ b/js/functions.js @@ -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