Browse Source

Add confirmation if leaving bio unsaved

merge-requests/64/head
Deimos 6 years ago
parent
commit
50068c0fcc
  1. 1
      tildes/tildes/templates/settings_bio.jinja2

1
tildes/tildes/templates/settings_bio.jinja2

@ -15,6 +15,7 @@
name="user-bio" name="user-bio"
autocomplete="off" autocomplete="off"
data-ic-patch-to="{{ request.route_url("ic_user", username=request.user.username) }}" data-ic-patch-to="{{ request.route_url("ic_user", username=request.user.username) }}"
data-js-confirm-leave-page-unsaved
> >
{{ markdown_textarea('User Bio (Markdown)', text=request.user.bio_markdown) }} {{ markdown_textarea('User Bio (Markdown)', text=request.user.bio_markdown) }}

Loading…
Cancel
Save