Add javascript to display/clear the requestor's address in

the textbox at the top of the list administrators multifield.
 - Legacy-Id: 273
This commit is contained in:
Bill Fenner 2007-06-09 03:45:35 +00:00
parent f8dbed4884
commit ebe29bc1af
2 changed files with 18 additions and 1 deletions

View file

@ -1,5 +1,22 @@
{% extends "mailinglists/list_wizard_base.html" %}
{# javascript to go with the list administrators multi-form #}
{% if form.admins %}
{% block head %}
<script language="javascript">
function checkthis () {
if (document.form_post["{{ step }}-admins_0"].checked == true) {
document.form_post["{{ step }}-admins_1"].value=document.form_post["{{ step }}-requestor_email"].value;
} else {
document.form_post["{{ step }}-admins_1"].value = "";
}
}
</script>
{% endblock %}
{% endif %}
{% block mlform %}
{% for field in form %}
{% if field.is_hidden %}

View file

@ -31,7 +31,7 @@ ul.errorlist { color: red; border: 1px solid red; }
<img src="/images/t_un.gif" border="0">
</td></tr>
</table>
<form action="." method="POST">
<form action="." method="POST" name="form_post">
<h2>Step {{ step|add:"1" }}:</h2>
<table bgcolor="f3f8fd" cellpadding="3" cellspacing="0" border="0" width="100%">