From 876d029549934647b427e058112186d32cc12e3d Mon Sep 17 00:00:00 2001 From: Hugues Peccatte Date: Fri, 20 Jun 2014 23:22:42 +0200 Subject: [PATCH] Fix error when clicking 'Go' and having an empty textarea in SQL tab. Signed-off-by: Hugues Peccatte --- js/functions.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/functions.js b/js/functions.js index 6dc19e72ea..bdd89fa5a3 100644 --- a/js/functions.js +++ b/js/functions.js @@ -422,9 +422,8 @@ function checkSqlQuery(theForm) isEmpty = 1; if (isEmpty) { - sqlQuery.select(); alert(PMA_messages.strFormEmpty); - sqlQuery.focus(); + codemirror_editor.focus(); return false; }