mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-20 23:44:47 +02:00
Add timeout so Name Road step will reveal properly
(re: https://github.com/openstreetmap/iD/pull/3921#issuecomment-290959115)
This commit is contained in:
@@ -272,9 +272,11 @@ export function uiIntroLine(context, reveal) {
|
||||
continueTo(play);
|
||||
});
|
||||
|
||||
reveal('.entity-editor-pane',
|
||||
t('intro.lines.describe', { button: icon('#icon-apply', 'pre-text') })
|
||||
);
|
||||
timeout(function() {
|
||||
reveal('.entity-editor-pane',
|
||||
t('intro.lines.describe', { button: icon('#icon-apply', 'pre-text') })
|
||||
);
|
||||
}, 500);
|
||||
|
||||
function continueTo(nextStep) {
|
||||
context.on('exit.intro', null);
|
||||
@@ -285,7 +287,7 @@ export function uiIntroLine(context, reveal) {
|
||||
|
||||
function play() {
|
||||
dispatch.call('done');
|
||||
reveal('.intro-nav-wrap .chapter-buildings',
|
||||
reveal('.intro-nav-wrap .chapter-building',
|
||||
t('intro.lines.play', { next: t('intro.buildings.title') }), {
|
||||
buttonText: t('intro.ok'),
|
||||
buttonCallback: function() { reveal('#id-container'); }
|
||||
|
||||
Reference in New Issue
Block a user