Fix check of existing codemirror editor when running in AJAX mode

This commit is contained in:
Eric Krona 2012-02-15 08:28:39 -05:00 committed by Marc Delisle
parent 5a08de3e2b
commit f27521d3ea

View File

@ -367,8 +367,8 @@ function checkSqlQuery(theForm)
{
// First check if codemirror is active.
if (typeof(CodeMirror)!='undefined') {
theForm.elements['sql_query'].value = CodeMirror.getValue();
if (codemirror_editor) {
theForm.elements['sql_query'].value = codemirror_editor.getValue();
}
var sqlQuery = theForm.elements['sql_query'];