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