2019-10-07 15:28:15 -07:00
|
|
|
define(["loading"], function (loading) {
|
2018-10-22 15:05:09 -07:00
|
|
|
"use strict";
|
|
|
|
|
|
|
|
function onFinish() {
|
2019-10-07 15:28:15 -07:00
|
|
|
loading.show();
|
|
|
|
ApiClient.ajax({
|
2018-10-22 15:05:09 -07:00
|
|
|
url: ApiClient.getUrl("Startup/Complete"),
|
|
|
|
type: "POST"
|
|
|
|
}).then(function() {
|
2019-08-25 15:37:42 -07:00
|
|
|
loading.hide();
|
2019-10-19 05:42:28 -07:00
|
|
|
window.location.href = "index.html";
|
2019-08-25 15:37:42 -07:00
|
|
|
});
|
2018-10-22 15:05:09 -07:00
|
|
|
}
|
2019-10-07 15:28:15 -07:00
|
|
|
|
|
|
|
return function (view, params) {
|
2019-08-25 15:37:42 -07:00
|
|
|
view.querySelector(".btnWizardNext").addEventListener("click", onFinish);
|
|
|
|
};
|
2019-01-11 05:40:36 -07:00
|
|
|
});
|