Fixed tutorial overlay unexpectedly blurring the screen when not running the tutorial. [fixes SCI-707]

This commit is contained in:
Matej Zrimšek 2016-11-18 18:14:45 +01:00
parent 341fb13a26
commit 6bc2603157

View file

@ -115,6 +115,14 @@ function initPageTutorialSteps(pageFirstStepN, pageLastStepN, nextPagePath,
location.reload();
})
.goToStep(stepNum - (pageFirstStepN - 1))
.onexit(function() {
Cookies.remove('tutorial_data');
Cookies.remove('current_tutorial_step');
})
.oncomplete(function() {
Cookies.remove('tutorial_data');
Cookies.remove('current_tutorial_step');
})
.start();
} else {
if (pageFirstStepN === pageLastStepN) {
@ -145,6 +153,14 @@ function initPageTutorialSteps(pageFirstStepN, pageLastStepN, nextPagePath,
location.reload();
})
.goToStep(stepNum - (pageFirstStepN - 1))
.onexit(function() {
Cookies.remove('tutorial_data');
Cookies.remove('current_tutorial_step');
})
.oncomplete(function() {
Cookies.remove('tutorial_data');
Cookies.remove('current_tutorial_step');
})
.start();
}