improve redirect

This commit is contained in:
grafixeyehero 2019-10-19 15:42:28 +03:00
parent 21a794d845
commit 5461d81275

View File

@ -6,17 +6,12 @@ define(["loading"], function(loading) {
url: ApiClient.getUrl("Startup/Complete"), url: ApiClient.getUrl("Startup/Complete"),
type: "POST" type: "POST"
}).then(function() { }).then(function() {
Dashboard.navigate("dashboard.html");
loading.hide(); loading.hide();
window.location.href = "index.html";
}); });
} }
return function(view, params) { return function(view, params) {
view.querySelector(".btnWizardNext").addEventListener("click", onFinish); view.querySelector(".btnWizardNext").addEventListener("click", onFinish);
view.addEventListener("viewshow", function() {
document.querySelector(".skinHeader").classList.add("noHomeButtonHeader")
});
view.addEventListener("viewhide", function() {
document.querySelector(".skinHeader").classList.remove("noHomeButtonHeader")
});
}; };
}); });