mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-16 22:03:37 +02:00
Dispatch done before calling reveal in playsteps (to style the buttons)
This commit is contained in:
@@ -108,13 +108,11 @@ export function uiIntroArea(context, reveal) {
|
||||
|
||||
|
||||
function play() {
|
||||
dispatch.call('done');
|
||||
reveal('.intro-nav-wrap .chapter-line',
|
||||
t('intro.areas.play', { next: t('intro.lines.title') }), {
|
||||
buttonText: t('intro.ok'),
|
||||
buttonCallback: function() {
|
||||
dispatch.call('done');
|
||||
reveal('#id-container');
|
||||
}
|
||||
buttonCallback: function() { reveal('#id-container'); }
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
@@ -185,13 +185,11 @@ export function uiIntroLine(context, reveal) {
|
||||
|
||||
|
||||
function play() {
|
||||
dispatch.call('done');
|
||||
reveal('.intro-nav-wrap .chapter-startEditing',
|
||||
t('intro.lines.play', { next: t('intro.startediting.title') }), {
|
||||
buttonText: t('intro.ok'),
|
||||
buttonCallback: function() {
|
||||
dispatch.call('done');
|
||||
reveal('#id-container');
|
||||
}
|
||||
buttonCallback: function() { reveal('#id-container'); }
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
@@ -195,13 +195,11 @@ export function uiIntroNavigation(context, reveal) {
|
||||
|
||||
|
||||
function play() {
|
||||
dispatch.call('done');
|
||||
reveal('.intro-nav-wrap .chapter-point',
|
||||
t('intro.navigation.play', { next: t('intro.points.title') }), {
|
||||
buttonText: t('intro.ok'),
|
||||
buttonCallback: function() {
|
||||
dispatch.call('done');
|
||||
reveal('#id-container');
|
||||
}
|
||||
buttonCallback: function() { reveal('#id-container'); }
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
@@ -295,13 +295,11 @@ export function uiIntroPoint(context, reveal) {
|
||||
|
||||
|
||||
function play() {
|
||||
dispatch.call('done');
|
||||
reveal('.intro-nav-wrap .chapter-area',
|
||||
t('intro.points.play', { next: t('intro.areas.title') }), {
|
||||
buttonText: t('intro.ok'),
|
||||
buttonCallback: function() {
|
||||
dispatch.call('done');
|
||||
reveal('#id-container');
|
||||
}
|
||||
buttonCallback: function() { reveal('#id-container'); }
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
@@ -21,10 +21,10 @@ export function uiIntroWelcome(context, reveal) {
|
||||
}
|
||||
|
||||
function chapters() {
|
||||
dispatch.call('done');
|
||||
reveal('.intro-nav-wrap .chapter-navigation',
|
||||
t('intro.welcome.chapters', { next: t('intro.navigation.title') })
|
||||
);
|
||||
dispatch.call('done');
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user