summaryrefslogtreecommitdiff
path: root/templates/mod
diff options
context:
space:
mode:
authorMichael Foster <savetheinternet@tinyboard.org>2013-07-22 17:51:13 -0400
committerMichael Foster <savetheinternet@tinyboard.org>2013-07-22 17:51:13 -0400
commited8fe6c27a39222604e65acdb09de27fd85fb0a2 (patch)
tree0207fd311a5d043098b5afad5449195f3b6c6155 /templates/mod
parent51361d02fb4b66a198dcdb5cd6350e6dada0aac9 (diff)
Option to check public ban message by default
Diffstat (limited to 'templates/mod')
-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;
}