jellyfin-web/src/controllers/wizardfinishpage.js

23 lines
769 B
JavaScript
Raw Normal View History

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() {
Dashboard.navigate("dashboard.html");
loading.hide();
});
2018-10-22 15:05:09 -07:00
}
return function(view, params) {
view.querySelector(".btnWizardNext").addEventListener("click", onFinish);
view.addEventListener("viewshow", function() {
2018-10-22 15:05:09 -07:00
document.querySelector(".skinHeader").classList.add("noHomeButtonHeader")
});
view.addEventListener("viewhide", function() {
2018-10-22 15:05:09 -07:00
document.querySelector(".skinHeader").classList.remove("noHomeButtonHeader")
});
};
});