Skip to content

Commit ebe29bc

Browse files
committed
Add javascript to display/clear the requestor's address in
the textbox at the top of the list administrators multifield. - Legacy-Id: 273
1 parent f8dbed4 commit ebe29bc

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

ietf/templates/mailinglists/list_wizard_MailingListForm.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
{% extends "mailinglists/list_wizard_base.html" %}
22

3+
{# javascript to go with the list administrators multi-form #}
4+
{% if form.admins %}
5+
{% block head %}
6+
<script language="javascript">
7+
8+
function checkthis () {
9+
if (document.form_post["{{ step }}-admins_0"].checked == true) {
10+
document.form_post["{{ step }}-admins_1"].value=document.form_post["{{ step }}-requestor_email"].value;
11+
} else {
12+
document.form_post["{{ step }}-admins_1"].value = "";
13+
}
14+
}
15+
16+
</script>
17+
{% endblock %}
18+
{% endif %}
19+
320
{% block mlform %}
421
{% for field in form %}
522
{% if field.is_hidden %}

ietf/templates/mailinglists/list_wizard_base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<img src="/images/t_un.gif" border="0">
3232
</td></tr>
3333
</table>
34-
<form action="." method="POST">
34+
<form action="." method="POST" name="form_post">
3535

3636
<h2>Step {{ step|add:"1" }}:</h2>
3737
<table bgcolor="f3f8fd" cellpadding="3" cellspacing="0" border="0" width="100%">

0 commit comments

Comments
 (0)