mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-10 22:06:46 +08:00
Fixed tutorial overlay unexpectedly blurring the screen when not running the tutorial. [fixes SCI-707]
This commit is contained in:
parent
341fb13a26
commit
6bc2603157
1 changed files with 16 additions and 0 deletions
|
@ -115,6 +115,14 @@ function initPageTutorialSteps(pageFirstStepN, pageLastStepN, nextPagePath,
|
||||||
location.reload();
|
location.reload();
|
||||||
})
|
})
|
||||||
.goToStep(stepNum - (pageFirstStepN - 1))
|
.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();
|
.start();
|
||||||
} else {
|
} else {
|
||||||
if (pageFirstStepN === pageLastStepN) {
|
if (pageFirstStepN === pageLastStepN) {
|
||||||
|
@ -145,6 +153,14 @@ function initPageTutorialSteps(pageFirstStepN, pageLastStepN, nextPagePath,
|
||||||
location.reload();
|
location.reload();
|
||||||
})
|
})
|
||||||
.goToStep(stepNum - (pageFirstStepN - 1))
|
.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();
|
.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue