1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00
jellyfin-web/dashboard-ui/scripts/wizardagreement.js

28 lines
576 B
JavaScript
Raw Normal View History

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