diff --git a/static/js/portico/confirm-preregistrationuser.js b/static/js/portico/confirm-preregistrationuser.js new file mode 100644 index 0000000000..3157eaa76e --- /dev/null +++ b/static/js/portico/confirm-preregistrationuser.js @@ -0,0 +1,3 @@ +$(function () { + $("#register").submit(); +}); diff --git a/templates/confirmation/confirm_preregistrationuser.html b/templates/confirmation/confirm_preregistrationuser.html index ca71796334..1ee3eb5bea 100644 --- a/templates/confirmation/confirm_preregistrationuser.html +++ b/templates/confirmation/confirm_preregistrationuser.html @@ -1,5 +1,10 @@ {% extends "zerver/base.html" %} +{% block customhead %} +{{ super() }} +{{ render_bundle('confirm-preregistrationuser') }} +{% endblock %} + {% block content %} {# @@ -15,9 +20,4 @@ post to another view which executes in our code to produce the desired form. - {% endblock %} diff --git a/tools/webpack.assets.json b/tools/webpack.assets.json index 30894a5e3a..5aac1c8db0 100644 --- a/tools/webpack.assets.json +++ b/tools/webpack.assets.json @@ -61,6 +61,9 @@ "jquery-validation/dist/jquery.validate.min.js", "./static/js/portico/signup.js" ], + "confirm-preregistrationuser": [ + "./static/js/portico/confirm-preregistrationuser.js" + ], "support": [ "./static/js/analytics/support.js", "./static/styles/app_components.scss"