1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Migration of wizard to ES6 modules

This commit is contained in:
Cameron 2020-07-17 19:04:56 +01:00
parent a9246f8f39
commit c11977c9fe
6 changed files with 235 additions and 227 deletions

View file

@ -1,18 +1,16 @@
define(['loading'], function (loading) {
'use strict';
import loading from 'loading';
function onFinish() {
loading.show();
ApiClient.ajax({
url: ApiClient.getUrl('Startup/Complete'),
type: 'POST'
}).then(function () {
loading.hide();
window.location.href = 'index.html';
});
}
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);
};
});
export default function (view, params) {
view.querySelector('.btnWizardNext').addEventListener('click', onFinish);
}