jellyfin-web/dashboard-ui/scripts/wizardagreement.js
2015-01-10 00:53:35 -05:00

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