mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 11:28:23 -07:00
28 lines
576 B
JavaScript
28 lines
576 B
JavaScript
(function (window, $) {
|
|
|
|
function onSubmit(page) {
|
|
|
|
if ($('#chkAccept', page).checked()) {
|
|
Dashboard.navigate('wizardfinish.html');
|
|
} else {
|
|
|
|
Dashboard.alert({
|
|
message: Globalize.translate('MessagePleaseAcceptTermsOfServiceBeforeContinuing'),
|
|
title: ''
|
|
});
|
|
}
|
|
}
|
|
|
|
window.WizardAgreementPage = {
|
|
|
|
onSubmit: function () {
|
|
|
|
var page = $(this).parents('.page');
|
|
|
|
onSubmit(page);
|
|
|
|
return false;
|
|
}
|
|
};
|
|
|
|
})(window, jQuery); |