Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJo Michael <me@mynetx.net>2012-04-15 07:40:39 +0400
committerJo Michael <me@mynetx.net>2012-04-15 07:40:39 +0400
commit05699a7ac473d9cada3ea813463ab025c3432498 (patch)
treea59a9cda62ab26637f1dca9cb9f2c466be3f53b8 /tbl_replace.php
parent230e4478872cb6546d3e6afbfe2e938a8de1562d (diff)
Add Codemirror to tbl_replace (SQL box after inserting rows)
Diffstat (limited to 'tbl_replace.php')
-rw-r--r--tbl_replace.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/tbl_replace.php b/tbl_replace.php
index f7e0f9e263..4eb563bb5d 100644
--- a/tbl_replace.php
+++ b/tbl_replace.php
@@ -30,6 +30,11 @@ $GLOBALS['js_include'][] = 'makegrid.js';
// 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']