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:
authorMadhura Jayaratne <madhura.cj@gmail.com>2015-02-20 08:11:49 +0300
committerMadhura Jayaratne <madhura.cj@gmail.com>2015-02-20 08:11:49 +0300
commitb7b865a248e466199ee9338f6225140b275a8ac6 (patch)
treeae52bc3d41304b0ccfa57280239cd43f885a4bec /js/transformations
parent6a9b787320137a69f5979a20fcf0813c210a2d44 (diff)
Simplify editors
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
Diffstat (limited to 'js/transformations')
-rw-r--r--js/transformations/json_editor.js10
1 files changed, 2 insertions, 8 deletions
diff --git a/js/transformations/json_editor.js b/js/transformations/json_editor.js
index 6c793753ab..8912e647b5 100644
--- a/js/transformations/json_editor.js
+++ b/js/transformations/json_editor.js
@@ -1,23 +1,17 @@
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
- * JSON syntax highlighting transformation plugin js
+ * JSON syntax highlighting transformation plugin
*
* @package PhpMyAdmin
*/
AJAX.registerOnload('transformations/json_editor.js', function() {
-
$.each($('textarea.transform_json_editor'), function (i, e) {
- var height = $(e).css('height');
- var codemirror_editor = CodeMirror.fromTextArea(e, {
+ CodeMirror.fromTextArea(e, {
lineNumbers: true,
matchBrackets: true,
indentUnit: 4,
mode: "application/json",
lineWrapping: true
});
- codemirror_editor.getScrollerElement().style.height = height;
- codemirror_editor.refresh();
- codemirror_editor.focus();
});
-
});