1
0
mirror of https://github.com/phpmyadmin/phpmyadmin.git synced 2026-10-28 07:41:55 +03:00

Fix detection whether there is SQL editor to handle

This commit is contained in:
Michal Čihař
2011-06-02 17:01:17 +02:00
parent ee481df7c8
commit 42e1fc1533

View File

@@ -2396,7 +2396,7 @@ $(document).ready(function() {
*/
$(document).ready(function() {
var elm = $('#sqlquery');
if (elm) {
if (elm.length > 0) {
codemirror_editor = CodeMirror.fromTextArea(elm[0], {lineNumbers: true, matchBrackets: true, indentUnit: 4, mode: "text/x-mysql"});
}
})