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/wizard/finish.js

19 lines
471 B
JavaScript
Raw Normal View History

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