Fix the behavior of the 'enable reply' checkbox

master
Pierre Jaury 9 years ago
parent bc6766ac26
commit 78abe64068

@ -14,7 +14,7 @@ Automatic reply
{{ macros.form_field(form.reply_enabled, {{ macros.form_field(form.reply_enabled,
onchange="if(this.checked){$('#reply_subject,#reply_body').removeAttr('disabled')} onchange="if(this.checked){$('#reply_subject,#reply_body').removeAttr('disabled')}
else{$('#reply_subject,#reply_body').attr('disabled', '').val('')}", else{$('#reply_subject,#reply_body').attr('disabled', '').val('')}",
**{("checked" if user.forward else "unchecked"): ""}) }} **{("checked" if user.reply_subject else "unchecked"): ""}) }}
{{ macros.form_field(form.reply_subject, {{ macros.form_field(form.reply_subject,
**{("enabled" if user.reply_subject else "disabled"): ""}) }} **{("enabled" if user.reply_subject else "disabled"): ""}) }}
{{ macros.form_field(form.reply_body, rows=10, {{ macros.form_field(form.reply_body, rows=10,

Loading…
Cancel
Save