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

17 lines
459 B
JavaScript
Raw Normal View History

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