diff --git a/ChangeLog b/ChangeLog index acb11e389b..7519675e19 100644 --- a/ChangeLog +++ b/ChangeLog @@ -44,6 +44,7 @@ phpMyAdmin - ChangeLog - bug #4278 reCaptcha re-login requires double effort - bug #4324 Datepicker not showing up on insert page - bug #3991 Problem selecting item in select boxes with the ENTER keystroke in some browsers +- bug #4323 QueryWindow ignores CodeMirror 4.1.9.0 (2014-03-06) - bug #4279 CTRL + up or down moves two fields (part one) diff --git a/js/functions.js b/js/functions.js index 89ea7a2f8b..5bdacba37b 100644 --- a/js/functions.js +++ b/js/functions.js @@ -387,7 +387,12 @@ function confirmQuery(theForm1, sqlQuery1) */ function checkSqlQuery(theForm) { - var sqlQuery = theForm.elements['sql_query']; + // get the textarea element containing the query + if (codemirror_editor) { + var sqlQuery = codemirror_editor.display.input; + } else { + var sqlQuery = theForm.elements['sql_query']; + } var isEmpty = 1; var space_re = new RegExp('\\s+'); if (typeof(theForm.elements['sql_file']) != 'undefined' &&