jellyfin-web/dashboard-ui/scripts/wizardfinishpage.js
2015-12-14 10:43:03 -05:00

21 lines
372 B
JavaScript

(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);
});
})();