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-05-27 10:25:40 +0300
committerMadhura Jayaratne <madhura.cj@gmail.com>2015-05-27 10:25:40 +0300
commitce79e5fe9fa3584c9e3478af93862d07b2e7dddf (patch)
tree8e256efad355745f6053e199b6853e17b1aea307 /js/transformations
parent0ce0c5caa6eb972598accff57ef4ba0ebcd636f6 (diff)
Simplify jQuery object iteration
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
Diffstat (limited to 'js/transformations')
-rw-r--r--js/transformations/json_editor.js4
-rw-r--r--js/transformations/xml_editor.js4
2 files changed, 4 insertions, 4 deletions
diff --git a/js/transformations/json_editor.js b/js/transformations/json_editor.js
index 8912e647b5..040d5f325f 100644
--- a/js/transformations/json_editor.js
+++ b/js/transformations/json_editor.js
@@ -5,8 +5,8 @@
* @package PhpMyAdmin
*/
AJAX.registerOnload('transformations/json_editor.js', function() {
- $.each($('textarea.transform_json_editor'), function (i, e) {
- CodeMirror.fromTextArea(e, {
+ $('textarea.transform_json_editor').each(function () {
+ CodeMirror.fromTextArea(this, {
lineNumbers: true,
matchBrackets: true,
indentUnit: 4,
diff --git a/js/transformations/xml_editor.js b/js/transformations/xml_editor.js
index c10b8f845c..4492b9e730 100644
--- a/js/transformations/xml_editor.js
+++ b/js/transformations/xml_editor.js
@@ -5,8 +5,8 @@
* @package PhpMyAdmin
*/
AJAX.registerOnload('transformations/xml_editor.js', function() {
- $.each($('textarea.transform_xml_editor'), function (i, e) {
- CodeMirror.fromTextArea(e, {
+ $('textarea.transform_xml_editor').each( function () {
+ CodeMirror.fromTextArea(this, {
lineNumbers: true,
indentUnit: 4,
mode: "application/xml",