fdssdf
This commit is contained in:
parent
a0801114a0
commit
941d40e78c
2 changed files with 3 additions and 3 deletions
|
@ -171,8 +171,8 @@ 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 [25, 50, 100]:
|
||||||
v.frontsize = int(frontsize)
|
v.frontsize = frontsize
|
||||||
updated = True
|
updated = True
|
||||||
cache.delete_memoized(frontlist)
|
cache.delete_memoized(frontlist)
|
||||||
else: abort(400)
|
else: abort(400)
|
||||||
|
|
|
@ -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 id='frontsize' class="form-control" form="profile-settings" name="frontsize" onchange="post_toast('/settings/profile?frontsize='+document.getElementById('frontsize').value)">
|
<select id='frontsize' class="form-control" form="profile-settings" name="frontsize" onchange="post_toast('/settings/profile?frontsize='+document.getElementById('frontsize').value)">
|
||||||
{% for entry in ["25", "50", "100"] %}
|
{% for entry in [25, 50, 100] %}
|
||||||
<option value="{{entry}}"{{' selected' if v.frontsize==entry else ''}}>{{entry}}</option>
|
<option value="{{entry}}"{{' selected' if v.frontsize==entry else ''}}>{{entry}}</option>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</select>
|
</select>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue