mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-21 04:25:32 +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();
|
||||
})
|
||||
.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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue