mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 03:18:19 -07:00
26 lines
634 B
JavaScript
26 lines
634 B
JavaScript
define(['jQuery'], function ($) {
|
|
'use strict';
|
|
|
|
function onSubmit() {
|
|
|
|
var page = $(this).parents('.page')[0];
|
|
|
|
if (page.querySelector('.chkAccept').checked) {
|
|
Dashboard.navigate('wizardfinish.html');
|
|
} else {
|
|
|
|
Dashboard.alert({
|
|
message: Globalize.translate('MessagePleaseAcceptTermsOfServiceBeforeContinuing'),
|
|
title: ''
|
|
});
|
|
}
|
|
|
|
return false;
|
|
}
|
|
|
|
$(document).on('pageinit', '#wizardAgreementPage', function () {
|
|
|
|
$('.wizardAgreementForm').off('submit', onSubmit).on('submit', onSubmit);
|
|
});
|
|
|
|
}); |