From 1db926101d08167452b80ee4aaf8d695706439a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Zrim=C5=A1ek?= Date: Wed, 23 Nov 2016 10:48:43 +0100 Subject: [PATCH] Minor refactoring. --- app/assets/javascripts/sitewide/utils.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/app/assets/javascripts/sitewide/utils.js b/app/assets/javascripts/sitewide/utils.js index 5859e78ae..f42f515c2 100644 --- a/app/assets/javascripts/sitewide/utils.js +++ b/app/assets/javascripts/sitewide/utils.js @@ -108,20 +108,16 @@ function initPageTutorialSteps(pageFirstStepN, pageLastStepN, nextPagePath, keyboardNavigation: false, tooltipClass: 'custom next-page-link' }) - .onexit(function() { - location.reload(); - }) - .oncomplete(function() { - location.reload(); - }) .goToStep(stepNum - (pageFirstStepN - 1)) .onexit(function() { Cookies.remove('tutorial_data'); Cookies.remove('current_tutorial_step'); + location.reload(); }) .oncomplete(function() { Cookies.remove('tutorial_data'); Cookies.remove('current_tutorial_step'); + location.reload(); }) .start(); } else {