[gnome-maps/wip/mlundblad/wikidata: 10/10] osmEditDialog: Change the Wikipedia field to use the composite editor
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/mlundblad/wikidata: 10/10] osmEditDialog: Change the Wikipedia field to use the composite editor
- Date: Tue, 18 Oct 2022 19:40:00 +0000 (UTC)
commit 5f84382175c1bcc46c893120245115c64640cf36
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]