mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-31 20:19:05 +08:00
Minor refactoring.
This commit is contained in:
parent
6bc2603157
commit
1db926101d
1 changed files with 2 additions and 6 deletions
|
@ -108,20 +108,16 @@ function initPageTutorialSteps(pageFirstStepN, pageLastStepN, nextPagePath,
|
||||||
keyboardNavigation: false,
|
keyboardNavigation: false,
|
||||||
tooltipClass: 'custom next-page-link'
|
tooltipClass: 'custom next-page-link'
|
||||||
})
|
})
|
||||||
.onexit(function() {
|
|
||||||
location.reload();
|
|
||||||
})
|
|
||||||
.oncomplete(function() {
|
|
||||||
location.reload();
|
|
||||||
})
|
|
||||||
.goToStep(stepNum - (pageFirstStepN - 1))
|
.goToStep(stepNum - (pageFirstStepN - 1))
|
||||||
.onexit(function() {
|
.onexit(function() {
|
||||||
Cookies.remove('tutorial_data');
|
Cookies.remove('tutorial_data');
|
||||||
Cookies.remove('current_tutorial_step');
|
Cookies.remove('current_tutorial_step');
|
||||||
|
location.reload();
|
||||||
})
|
})
|
||||||
.oncomplete(function() {
|
.oncomplete(function() {
|
||||||
Cookies.remove('tutorial_data');
|
Cookies.remove('tutorial_data');
|
||||||
Cookies.remove('current_tutorial_step');
|
Cookies.remove('current_tutorial_step');
|
||||||
|
location.reload();
|
||||||
})
|
})
|
||||||
.start();
|
.start();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue