1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00
jellyfin-web/src/controllers/wizardfinishpage.js
2019-10-21 16:50:11 +03:00

16 lines
459 B
JavaScript

define(["loading"], function(loading) {
"use strict";
function onFinish() {
loading.show(), ApiClient.ajax({
url: ApiClient.getUrl("Startup/Complete"),
type: "POST"
}).then(function() {
loading.hide();
window.location.href = "index.html";
});
}
return function(view, params) {
view.querySelector(".btnWizardNext").addEventListener("click", onFinish);
};
});