mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 03:18:19 -07:00
20 lines
745 B
JavaScript
20 lines
745 B
JavaScript
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()
|
|
})
|
|
}
|
|
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")
|
|
})
|
|
}
|
|
});
|