diff options
author | Gerben <gerben@treora.com> | 2018-03-23 15:10:42 +0100 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2018-03-23 22:10:42 +0800 |
commit | 2dc6f15eca007105fb6c3972265e6da53696bdf1 (patch) | |
tree | 2775c7b19061663edf401d3af1adc87bb86c5453 /templates/admin/base/search.tmpl | |
parent | e64aa18dc97f2cf25bc642c7d987a4a3bed494ac (diff) | |
download | gitea-2dc6f15eca007105fb6c3972265e6da53696bdf1.tar.gz gitea-2dc6f15eca007105fb6c3972265e6da53696bdf1.zip |
Don't warn users about *every* dirty form (#3707)
The choice regarding which forms should or should not trigger a warning
is subjective. I tried to be consistent and not warn about forms that:
- run an action, rather than edit data: search, send an email.
- delete data: a warning about losing data would be confusing
Note that forms on sign-in pages were already ignored (using a selector,
rather than an explicit class on the form element).
Fixes #3698.
Diffstat (limited to 'templates/admin/base/search.tmpl')
-rw-r--r-- | templates/admin/base/search.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/admin/base/search.tmpl b/templates/admin/base/search.tmpl index 749e42af2d..7d23e51c89 100644 --- a/templates/admin/base/search.tmpl +++ b/templates/admin/base/search.tmpl @@ -17,7 +17,7 @@ </div> </div> </div> -<form class="ui form" style="max-width: 90%"> +<form class="ui form ignore-dirty" style="max-width: 90%"> <div class="ui fluid action input"> <input name="q" value="{{.Keyword}}" placeholder="{{.i18n.Tr "explore.search"}}..." autofocus> <button class="ui blue button">{{.i18n.Tr "explore.search"}}</button> |