mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-25 15:05:32 +00:00
Fix regression where changing the Wikidata field wouldn't update the wikidata tag (close #8132)
This commit is contained in:
@@ -118,8 +118,12 @@ export function uiFieldWikipedia(field, context) {
|
||||
.merge(_titleInput);
|
||||
|
||||
_titleInput
|
||||
.on('blur', blur)
|
||||
.on('change', change);
|
||||
.on('blur', function() {
|
||||
change(true);
|
||||
})
|
||||
.on('change', function() {
|
||||
change(false);
|
||||
});
|
||||
|
||||
|
||||
let link = titleContainer.selectAll('.wiki-link')
|
||||
@@ -176,11 +180,6 @@ export function uiFieldWikipedia(field, context) {
|
||||
}
|
||||
|
||||
|
||||
function blur() {
|
||||
change(true);
|
||||
}
|
||||
|
||||
|
||||
function change(skipWikidata) {
|
||||
let value = utilGetSetValue(_titleInput);
|
||||
const m = value.match(/https?:\/\/([-a-z]+)\.wikipedia\.org\/(?:wiki|\1-[-a-z]+)\/([^#]+)(?:#(.+))?/);
|
||||
|
||||
Reference in New Issue
Block a user