mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-22 08:17:30 +02:00
Tag reference doesn't need to be exclusive
This makes the implementation more complex and the feature is of marginal benefit, possibly detrimental. (What if I want to compare two tags and figure out which one is more appropriate?)
This commit is contained in:
+1
-7
@@ -85,13 +85,7 @@ iD.ui.preset = function(context, entity, preset) {
|
||||
d3.event.stopPropagation();
|
||||
d3.event.preventDefault();
|
||||
|
||||
_.forEach(shown(), function(other) {
|
||||
if (other.id === field.id) {
|
||||
other.reference.toggle();
|
||||
} else {
|
||||
other.reference.hide();
|
||||
}
|
||||
});
|
||||
field.reference.toggle();
|
||||
|
||||
render();
|
||||
}
|
||||
|
||||
+1
-7
@@ -102,13 +102,7 @@ iD.ui.Taglist = function(context, entity) {
|
||||
|
||||
row.call(iD.ui.TagReferenceButton()
|
||||
.on('click', function(tag) {
|
||||
tags.forEach(function(other) {
|
||||
if (other.key === tag.key) {
|
||||
other.reference.toggle();
|
||||
} else {
|
||||
other.reference.hide();
|
||||
}
|
||||
});
|
||||
tag.reference.toggle();
|
||||
}));
|
||||
|
||||
row.each(function(tag) {
|
||||
|
||||
Reference in New Issue
Block a user