jellyfin-web/dashboard-ui/scripts/wizardfinishpage.js
2015-06-06 22:51:04 -04:00

21 lines
379 B
JavaScript

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