mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-17 22:24:49 +02:00
Fix walkthrough (fixes #1568)
This commit is contained in:
@@ -97,9 +97,7 @@ iD.ui.intro.line = function(context, reveal) {
|
||||
|
||||
timeout(function() {
|
||||
d3.select('#curtain').style('pointer-events', 'none');
|
||||
var road = d3.select('.preset-list .preset-list-button').filter(function(d) {
|
||||
return d.id === 'category-road';
|
||||
});
|
||||
var road = d3.select('.preset-category-road .preset-list-button');
|
||||
reveal(road.node(), 'intro.lines.road');
|
||||
road.one('click.intro', roadCategory);
|
||||
}, 500);
|
||||
@@ -108,10 +106,9 @@ iD.ui.intro.line = function(context, reveal) {
|
||||
function roadCategory() {
|
||||
timeout(function() {
|
||||
var grid = d3.select('.subgrid');
|
||||
reveal(grid.node(), 'intro.lines.residential');
|
||||
grid.selectAll('.preset-list-button').filter(function(d) {
|
||||
return d.id === 'highway/residential';
|
||||
}).one('click.intro', roadDetails);
|
||||
reveal(grid.node(), 'intro.lines.residential');
|
||||
grid.selectAll('.preset-highway-residential .preset-list-button')
|
||||
.one('click.intro', roadDetails);
|
||||
}, 200);
|
||||
}
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ iD.ui.intro.point = function(context, reveal) {
|
||||
|
||||
function selectedPreset() {
|
||||
setTimeout(function() {
|
||||
reveal('.tag-wrap', 'intro.points.describe');
|
||||
reveal('.entity-editor-pane', 'intro.points.describe');
|
||||
context.history().on('change.intro', closeEditor);
|
||||
context.on('exit.intro', selectPoint);
|
||||
}, 400);
|
||||
|
||||
Reference in New Issue
Block a user