jellyfin-web/dashboard-ui/dashboard/wizardfinishpage.js
Luke Pulverenti 88d6c63263 use strict
2016-10-23 01:11:46 -04:00

27 lines
507 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('dashboard.html');
loading.hide();
});
}
return function (view, params) {
var self = this;
view.querySelector('.btnWizardNext').addEventListener('click', onFinish);
};
});