[gnome-maps] osmEditDialog: Reformat OSM_FIELDS array for readability



commit a48307bbeb5314876e47c64de8a00bf6740580a4
Author: Jonas Danielsson <jonas threetimestwo org>
Date:   Fri Feb 12 18:50:15 2016 +0100

    osmEditDialog: Reformat OSM_FIELDS array for readability

 src/osmEditDialog.js |   42 ++++++++++++++++++++++++++++++++----------
 1 files changed, 32 insertions(+), 10 deletions(-)
---
diff --git a/src/osmEditDialog.js b/src/osmEditDialog.js
index 2bace3a..272bbe7 100644
--- a/src/osmEditDialog.js
+++ b/src/osmEditDialog.js
@@ -87,16 +87,38 @@ let _osmPhoneRewriteFunc = function(text) {
  * rewriteFunc: a rewrite function taking a string argument
  * (only used for TEXT fields)
  */
-const OSM_FIELDS = [{name: _("Name"), tag: 'name', type: EditFieldType.TEXT},
-            {name: _("Website"), tag: 'website', type: EditFieldType.TEXT},
-            {name: _("Phone"), tag: 'phone', type: EditFieldType.TEXT,
-             rewriteFunc: this._osmPhoneRewriteFunc},
-            {name: _("Wikipedia"), tag: 'wikipedia', type: EditFieldType.TEXT,
-             rewriteFunc: this._osmWikipediaRewriteFunc},
-            {name: _("Population"), tag: 'population',
-             type: EditFieldType.INTEGER},
-            {name: _("Wheelchair access"), tag: 'wheelchair',
-             type: EditFieldType.YES_NO_LIMITED_DESIGNATED}];
+const OSM_FIELDS = [
+    {
+        name: _("Name"),
+        tag: 'name',
+        type: EditFieldType.TEXT
+    },
+    {
+        name: _("Website"),
+        tag: 'website',
+        type: EditFieldType.TEXT
+    },
+    {
+        name: _("Phone"),
+        tag: 'phone',
+        type: EditFieldType.TEXT,
+        rewriteFunc: this._osmPhoneRewriteFunc
+    },
+    {
+        name: _("Wikipedia"),
+        tag: 'wikipedia',
+        type: EditFieldType.TEXT,
+        rewriteFunc: this._osmWikipediaRewriteFunc},
+    {
+        name: _("Population"),
+        tag: 'population',
+        type: EditFieldType.INTEGER
+    },
+    {
+        name: _("Wheelchair access"),
+        tag: 'wheelchair',
+        type: EditFieldType.YES_NO_LIMITED_DESIGNATED
+    }];
 
 
 const OSMEditDialog = new Lang.Class({


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]