forked from MarseyWorld/MarseyWorld
sfd
parent
8ed5af569d
commit
1fe2855f0c
|
@ -294,7 +294,7 @@ def settings_profile_post(v):
|
||||||
|
|
||||||
frontsize = request.values.get("frontsize")
|
frontsize = request.values.get("frontsize")
|
||||||
if frontsize:
|
if frontsize:
|
||||||
if frontsize in {"25", "50", "100"}:
|
if frontsize in {"15", "25", "50", "100"}:
|
||||||
v.frontsize = int(frontsize)
|
v.frontsize = int(frontsize)
|
||||||
updated = True
|
updated = True
|
||||||
cache.delete_memoized(frontlist)
|
cache.delete_memoized(frontlist)
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
<p>Change how many posts appear on every page.</p>
|
<p>Change how many posts appear on every page.</p>
|
||||||
<div class="input-group mb2">
|
<div class="input-group mb2">
|
||||||
<select autocomplete="off" id='frontsize' class="form-control" form="profile-settings" name="frontsize" onchange="post_toast(this,'/settings/profile?frontsize='+document.getElementById('frontsize').value)">
|
<select autocomplete="off" id='frontsize' class="form-control" form="profile-settings" name="frontsize" onchange="post_toast(this,'/settings/profile?frontsize='+document.getElementById('frontsize').value)">
|
||||||
{% for entry in [25, 50, 100] %}
|
{% for entry in [15, 25, 50, 100] %}
|
||||||
<option value="{{entry}}"{{' selected' if v.frontsize==entry}}>{{entry}}</option>
|
<option value="{{entry}}"{{' selected' if v.frontsize==entry}}>{{entry}}</option>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</select>
|
</select>
|
||||||
|
|
Loading…
Reference in New Issue