mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
25 lines
612 B
JavaScript
25 lines
612 B
JavaScript
(function (window, $) {
|
|
|
|
function onSubmit() {
|
|
|
|
var page = $(this).parents('.page');
|
|
|
|
if ($('#chkAccept', page).checked()) {
|
|
Dashboard.navigate('wizardfinish.html');
|
|
} else {
|
|
|
|
Dashboard.alert({
|
|
message: Globalize.translate('MessagePleaseAcceptTermsOfServiceBeforeContinuing'),
|
|
title: ''
|
|
});
|
|
}
|
|
|
|
return false;
|
|
}
|
|
|
|
$(document).on('pageinitdepends', '#wizardAgreementPage', function(){
|
|
|
|
$('.wizardAgreementForm').off('submit', onSubmit).on('submit', onSubmit);
|
|
});
|
|
|
|
})(window, jQuery); |