jellyfin-web/dashboard-ui/scripts/wizardfinishpage.js

21 lines
391 B
JavaScript

define(['jQuery'], function ($) {
function onFinish() {
ApiClient.ajax({
url: ApiClient.getUrl('Startup/Complete'),
type: 'POST'
}).then(function () {
Dashboard.navigate('dashboard.html');
});
}
$(document).on('pageinit', '#wizardFinishPage', function(){
$('.btnWizardNext', this).on('click', onFinish);
});
});