jellyfin-web/dashboard-ui/scripts/wizardagreement.js

28 lines
576 B
JavaScript
Raw Normal View History

2015-01-05 20:25:23 -07:00
(function (window, $) {
function onSubmit(page) {
if ($('#chkAccept', page).checked()) {
Dashboard.navigate('wizardfinish.html');
2015-01-09 22:53:35 -07:00
} else {
Dashboard.alert({
message: Globalize.translate('MessagePleaseAcceptTermsOfServiceBeforeContinuing'),
title: ''
});
2015-01-05 20:25:23 -07:00
}
}
window.WizardAgreementPage = {
onSubmit: function () {
var page = $(this).parents('.page');
onSubmit(page);
return false;
}
};
})(window, jQuery);