diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-08-23 17:36:57 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-23 17:36:57 +0800 |
commit | e8b990999f89535269d20983079a40a0a9488eff (patch) | |
tree | 3a16640046072a51a9020e917457a801461860c2 /templates/org | |
parent | af33a1187b0ed7cf1ffbe8aabddf7ed0380f2cc9 (diff) | |
download | gitea-e8b990999f89535269d20983079a40a0a9488eff.tar.gz gitea-e8b990999f89535269d20983079a40a0a9488eff.zip |
Make "link-action" backend code respond correct JSON content (#26680)
Otherwise the `link-action` JS code couldn't parse the response.
Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to 'templates/org')
-rw-r--r-- | templates/org/settings/options.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/org/settings/options.tmpl b/templates/org/settings/options.tmpl index 683b886467..03827e4c3f 100644 --- a/templates/org/settings/options.tmpl +++ b/templates/org/settings/options.tmpl @@ -94,7 +94,7 @@ <div class="field"> <button class="ui green button">{{$.locale.Tr "settings.update_avatar"}}</button> - <button class="ui red button link-action" data-url="{{.Link}}/avatar/delete" data-redirect="{{.Link}}">{{$.locale.Tr "settings.delete_current_avatar"}}</button> + <button class="ui red button link-action" data-url="{{.Link}}/avatar/delete">{{$.locale.Tr "settings.delete_current_avatar"}}</button> </div> </form> </div> |