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

26 lines
489 B
JavaScript
Raw Normal View History

2016-05-20 12:45:04 -07:00
define(['loading'], function (loading) {
2013-04-23 12:17:21 -07:00
2016-05-20 12:45:04 -07:00
function onFinish() {
2013-04-23 12:17:21 -07:00
2016-05-20 12:45:04 -07:00
loading.show();
ApiClient.ajax({
2014-11-14 19:31:03 -07:00
url: ApiClient.getUrl('Startup/Complete'),
type: 'POST'
2013-04-23 12:17:21 -07:00
2015-12-14 08:43:03 -07:00
}).then(function () {
2013-04-23 12:17:21 -07:00
2014-11-14 19:31:03 -07:00
Dashboard.navigate('dashboard.html');
2016-05-20 12:45:04 -07:00
loading.hide();
});
2016-05-20 12:45:04 -07:00
}
return function (view, params) {
2015-06-06 19:51:04 -07:00
2016-05-20 12:45:04 -07:00
var self = this;
2015-06-06 19:51:04 -07:00
2016-05-20 12:45:04 -07:00
view.querySelector('.btnWizardNext').addEventListener('click', onFinish);
};
2015-06-06 19:51:04 -07:00
});