jellyfin-web/dashboard-ui/scripts/wizardagreement.js
Luke Pulverenti 2e1924f72c update themes
2017-08-13 15:05:27 -04:00

1 line
453 B
JavaScript

define(["dom","emby-linkbutton"],function(dom){"use strict";function onSubmit(e){var page=dom.parentWithClass(this,"page");return page.querySelector(".chkAccept").checked?Dashboard.navigate("wizardfinish.html"):Dashboard.alert({message:Globalize.translate("MessagePleaseAcceptTermsOfServiceBeforeContinuing"),title:""}),e.preventDefault(),!1}return function(view,params){view.querySelector(".wizardAgreementForm").addEventListener("submit",onSubmit)}});