mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-17 22:24:49 +02:00
Expand additional tags for other preset
This commit is contained in:
@@ -110,7 +110,7 @@ iD.ui.TagEditor = function() {
|
||||
event.message(t('inspector.editing', { type: presetMatch.name }));
|
||||
|
||||
editorwrap.append('div')
|
||||
.attr('class','inspector-inner col12 fillL2').call(tagList);
|
||||
.attr('class','inspector-inner col12 fillL2').call(tagList, presetMatch.name === 'other');
|
||||
|
||||
tageditor.tags(tags);
|
||||
event.change(tags);
|
||||
|
||||
+4
-3
@@ -6,7 +6,7 @@ iD.ui.Taglist = function() {
|
||||
list,
|
||||
context;
|
||||
|
||||
function taglist(selection) {
|
||||
function taglist(selection, expanded) {
|
||||
|
||||
collapsebutton = selection.append('a')
|
||||
.attr('href','#')
|
||||
@@ -16,10 +16,11 @@ iD.ui.Taglist = function() {
|
||||
collapsebutton.classed('expanded', wrap.classed('hide'));
|
||||
wrap.call(iD.ui.Toggle(wrap.classed('hide')));
|
||||
selection.node().parentNode.scrollTop += 200;
|
||||
});
|
||||
})
|
||||
.classed('expanded', expanded);
|
||||
|
||||
var wrap = selection.append('div')
|
||||
.attr('class', 'hide');
|
||||
.classed('hide', !expanded);
|
||||
|
||||
list = wrap.append('ul')
|
||||
.attr('class', 'tag-list');
|
||||
|
||||
Reference in New Issue
Block a user