1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00
jellyfin-web/dashboard-ui/scripts/wizardfinishpage.js

21 lines
391 B
JavaScript
Raw Normal View History

define(['jQuery'], function ($) {
2013-04-23 15:17:21 -04:00
2015-06-06 22:51:04 -04:00
function onFinish() {
2013-04-23 15:17:21 -04:00
2015-06-06 22:51:04 -04:00
ApiClient.ajax({
2014-11-14 21:31:03 -05:00
url: ApiClient.getUrl('Startup/Complete'),
type: 'POST'
2013-04-23 15:17:21 -04:00
2015-12-14 10:43:03 -05:00
}).then(function () {
2013-04-23 15:17:21 -04:00
2014-11-14 21:31:03 -05:00
Dashboard.navigate('dashboard.html');
});
2015-06-06 22:51:04 -04:00
}
2015-09-01 10:01:59 -04:00
$(document).on('pageinit', '#wizardFinishPage', function(){
2015-06-06 22:51:04 -04:00
$('.btnWizardNext', this).on('click', onFinish);
});
});