auto-save: settings save on change via /style/field, noscript fallback button
This commit is contained in:
parent
1dc87ac449
commit
0f614c88f8
2 changed files with 50 additions and 4 deletions
|
|
@ -32,7 +32,7 @@ from .subscriptions import (
|
|||
handle_subscription_delete, handle_subscription_syncall,
|
||||
_sync_threads,
|
||||
)
|
||||
from .customize import handle_style_form, handle_style_submit, handle_style_template_submit, handle_about
|
||||
from .customize import handle_style_form, handle_style_submit, handle_style_template_submit, handle_field_save, handle_about
|
||||
from .tags import handle_tags, handle_tag_browse
|
||||
from .data import (
|
||||
handle_export, handle_import_form, handle_import_submit,
|
||||
|
|
@ -125,6 +125,8 @@ def _dispatch_inner(data):
|
|||
return handle_style_submit(body, gateway_host=gateway_host, scheme=scheme)
|
||||
elif path == "/style/template":
|
||||
return handle_style_template_submit(body, gateway_host=gateway_host, scheme=scheme)
|
||||
elif path == "/style/field":
|
||||
return handle_field_save(body)
|
||||
elif path == "/style/reset":
|
||||
set_setting("custom_template", "")
|
||||
return handle_style_form("Template reset to default.", gateway_host=gateway_host, scheme=scheme)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue