Fix check of existing codemirror editor when running in AJAX mode
This commit is contained in:
parent
5a08de3e2b
commit
f27521d3ea
@ -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'];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user