fix subscribe by default setting not working
This commit is contained in:
parent
76da1c3e61
commit
285c1cb119
@ -253,7 +253,7 @@ def settings_form(username):
|
|||||||
status = request.form.get('status', default="")[:100]
|
status = request.form.get('status', default="")[:100]
|
||||||
original_sig = request.form.get('signature', default='')
|
original_sig = request.form.get('signature', default='')
|
||||||
rendered_sig = babycode_to_html(original_sig)
|
rendered_sig = babycode_to_html(original_sig)
|
||||||
session['subscribe_by_default'] = request.form.get('subscribe_by_default', default='on') == 'on'
|
session['subscribe_by_default'] = request.form.get('subscribe_by_default', default='off') == 'on'
|
||||||
|
|
||||||
user.update({
|
user.update({
|
||||||
'status': status,
|
'status': status,
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
<input type='text' id='status' name='status' value='{{ active_user.status }}' maxlength=100 placeholder='Will be shown under your name. Max 100 characters.'>
|
<input type='text' id='status' name='status' value='{{ active_user.status }}' maxlength=100 placeholder='Will be shown under your name. Max 100 characters.'>
|
||||||
<label for='babycode-content'>Signature</label>
|
<label for='babycode-content'>Signature</label>
|
||||||
{{ babycode_editor_component(ta_name='signature', prefill=active_user.signature_original_markup, ta_placeholder='Will be shown under each of your posts', optional=true) }}
|
{{ babycode_editor_component(ta_name='signature', prefill=active_user.signature_original_markup, ta_placeholder='Will be shown under each of your posts', optional=true) }}
|
||||||
<input autocomplete='off' type='checkbox' id='subscribe_by_default' {{ 'checked' if session.get('subscribe_by_default', default=true) else '' }}>
|
<input autocomplete='off' type='checkbox' id='subscribe_by_default' name='subscribe_by_default' {{ 'checked' if session.get('subscribe_by_default', default=true) else '' }}>
|
||||||
<label for='subscribe_by_default'>Subscribe to thread by default when responding</label><br>
|
<label for='subscribe_by_default'>Subscribe to thread by default when responding</label><br>
|
||||||
<input type='submit' value='Save settings'>
|
<input type='submit' value='Save settings'>
|
||||||
</form>
|
</form>
|
||||||
|
Loading…
Reference in New Issue
Block a user