summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/mod/ban_form.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/mod/ban_form.html b/templates/mod/ban_form.html
index edc1ab3b..6c7560ad 100644
--- a/templates/mod/ban_form.html
+++ b/templates/mod/ban_form.html
@@ -41,11 +41,11 @@
<label for="reason">{% trans 'Message' %}</label>
</th>
<td>
- <input type="checkbox" id="public_message" name="public_message">
+ <input type="checkbox" id="public_message" name="public_message"{% if config.mod.check_ban_message %} checked{% endif %}>
<input type="text" name="message" id="message" size="35" maxlength="200" value="{{ config.mod.default_ban_message|e }}">
<span class="unimportant">({% trans 'public; attached to post' %})</span>
<script type="text/javascript">
- document.getElementById('message').disabled = true;
+ document.getElementById('message').disabled = !document.getElementById('public_message').checked;
document.getElementById('public_message').onchange = function() {
document.getElementById('message').disabled = !this.checked;
}