jellyfin-web/src/controllers/wizardfinishpage.js

20 lines
745 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_direct("/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() {
document.querySelector(".skinHeader").classList.add("noHomeButtonHeader")
}), view.addEventListener("viewhide", function() {
document.querySelector(".skinHeader").classList.remove("noHomeButtonHeader")
})
}
});