Add timeout so Name Road step will reveal properly

(re: https://github.com/openstreetmap/iD/pull/3921#issuecomment-290959115)
This commit is contained in:
Bryan Housel
2017-04-02 20:12:30 -04:00
parent 5f627c858e
commit b923a6d8e0
3 changed files with 57 additions and 35 deletions
+6 -4
View File
@@ -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'); }