[gnome-maps/wip/mlundblad/wikidata: 4/4] osmEditDialog: Change the Wikipedia field to use the composite editor




commit 392537776328c8c22c084858f088bac5555ccdd8
Author: Marcus Lundblad <ml dfupdate se>
Date:   Mon Oct 17 21:41:09 2022 +0200

    osmEditDialog: Change the Wikipedia field to use the composite editor
    
    Use the composite Wikipedia and Wikidata editor for the Wikipedia fields.

 src/osmEditDialog.js | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/src/osmEditDialog.js b/src/osmEditDialog.js
index 4bd51bdf..c45a7da0 100644
--- a/src/osmEditDialog.js
+++ b/src/osmEditDialog.js
@@ -158,12 +158,10 @@ const OSM_FIELDS = [
     },
     {
         name: _("Wikipedia"),
-        tag: 'wikipedia',
-        type: EditFieldType.TEXT,
-        validate: Wikipedia.isValidWikipedia,
-        rewriteFunc: _osmWikipediaRewriteFunc,
-        hint: _("The format used should include the language code " +
-                "and the article title like “en:Article title”.")
+        tag: 'wiki',
+        subtags: ['wikipedia',
+                  'wikidata'],
+        type: EditFieldType.WIKIPEDIA
     },
     {
         name: _("Opening hours"),


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