confirm_preregistrationuser: Uninline script.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg 2019-09-13 16:26:57 -07:00 committed by Tim Abbott
parent ed63042480
commit 366dce5d52
3 changed files with 11 additions and 5 deletions

View File

@ -0,0 +1,3 @@
$(function () {
$("#register").submit();
});

View File

@ -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.
<input type="hidden" value="{% if full_name %}{{ full_name }}{% endif %}" name="full_name"/>
</form>
<script>
$(function () {
$("#register").submit();
});
</script>
{% endblock %}

View File

@ -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"