mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 21:48:20 +02:00
Don't hard code form-field-structure field name
(radiobox with structure extras can be used for other fields)
This commit is contained in:
+2
-2
@@ -1420,12 +1420,12 @@ button.save.has-count .count::before {
|
||||
/* preset form cycleway */
|
||||
/* preset form structure extras */
|
||||
|
||||
.form-field-structure .structure-extras-wrap li,
|
||||
.structure-extras-wrap li,
|
||||
.form-field-cycleway .preset-input-wrap li,
|
||||
.form-field-access .preset-input-wrap li {
|
||||
border-bottom: 1px solid #ccc;
|
||||
}
|
||||
.form-field-structure .structure-extras-wrap li:last-child,
|
||||
.structure-extras-wrap li:last-child,
|
||||
.form-field-cycleway .preset-input-wrap li:last-child,
|
||||
.form-field-access .preset-input-wrap li:last-child {
|
||||
border-bottom: 0;
|
||||
|
||||
@@ -25,8 +25,7 @@ export function uiFieldRadio(field, context) {
|
||||
|
||||
|
||||
function selectedKey() {
|
||||
var selector = '.form-field-structure .toggle-list label.active input',
|
||||
node = d3_selectAll(selector);
|
||||
var node = wrap.selectAll('.toggle-list label.active input');
|
||||
return !node.empty() && node.datum();
|
||||
}
|
||||
|
||||
@@ -85,7 +84,7 @@ export function uiFieldRadio(field, context) {
|
||||
|
||||
|
||||
var extrasWrap = selection.selectAll('.structure-extras-wrap')
|
||||
.data(selected ? [0] : []);
|
||||
.data(selected ? [0] : []);
|
||||
|
||||
extrasWrap.exit()
|
||||
.remove();
|
||||
|
||||
Reference in New Issue
Block a user