jellyfin-web/dashboard-ui/dashboard/wizardfinishpage.js
2016-08-22 14:28:24 -04:00

26 lines
489 B
JavaScript

define(['loading'], function (loading) {
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);
};
});