2018-10-23 01:05:09 +03:00
|
|
|
define(["loading"], function(loading) {
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
function onFinish() {
|
|
|
|
loading.show(), ApiClient.ajax({
|
|
|
|
url: ApiClient.getUrl("Startup/Complete"),
|
|
|
|
type: "POST"
|
|
|
|
}).then(function() {
|
2019-08-26 01:37:42 +03:00
|
|
|
Dashboard.navigate("dashboard.html");
|
|
|
|
loading.hide();
|
|
|
|
});
|
2018-10-23 01:05:09 +03:00
|
|
|
}
|
|
|
|
return function(view, params) {
|
2019-08-26 01:37:42 +03:00
|
|
|
view.querySelector(".btnWizardNext").addEventListener("click", onFinish);
|
|
|
|
view.addEventListener("viewshow", function() {
|
2018-10-23 01:05:09 +03:00
|
|
|
document.querySelector(".skinHeader").classList.add("noHomeButtonHeader")
|
2019-08-26 01:37:42 +03:00
|
|
|
});
|
|
|
|
view.addEventListener("viewhide", function() {
|
2018-10-23 01:05:09 +03:00
|
|
|
document.querySelector(".skinHeader").classList.remove("noHomeButtonHeader")
|
2019-08-26 01:37:42 +03:00
|
|
|
});
|
|
|
|
};
|
2019-01-11 13:40:36 +01:00
|
|
|
});
|