Permalink
Browse files

Add Codemirror to tbl_replace (SQL box after inserting rows)

  • Loading branch information...
Jo Michael
Jo Michael committed Apr 15, 2012
1 parent 230e447 commit 05699a7ac473d9cada3ea813463ab025c3432498
Showing with 5 additions and 0 deletions.
  1. +5 −0 tbl_replace.php
View
@@ -30,6 +30,11 @@
// Needed for generation of Inline Edit anchors
$GLOBALS['js_include'][] = 'sql.js';
+if ($GLOBALS['cfg']['CodemirrorEnable']) {
+ $GLOBALS['js_include'][] = 'codemirror/lib/codemirror.js';
+ $GLOBALS['js_include'][] = 'codemirror/mode/mysql/mysql.js';
+}
+
if (isset($_REQUEST['insert_rows'])
&& is_numeric($_REQUEST['insert_rows'])
&& $_REQUEST['insert_rows'] != $cfg['InsertRows']

0 comments on commit 05699a7

Please sign in to comment.