diff options
author | KN4CK3R <admin@oldschoolhack.me> | 2022-09-14 13:24:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-14 13:24:39 +0200 |
commit | 5933f04094df2baa7e47d3d4372ad2fdfa2b6207 (patch) | |
tree | 40df24b5d56147bfbb025465bb8fc90f0ad19a46 /templates/org | |
parent | 88c2e2436001c868c2583950b5f9eb0516424b7d (diff) | |
download | gitea-5933f04094df2baa7e47d3d4372ad2fdfa2b6207.tar.gz gitea-5933f04094df2baa7e47d3d4372ad2fdfa2b6207.zip |
Skip dirty check for team forms (#21154)
The dirty check is not usefull for these forms.
Diffstat (limited to 'templates/org')
-rw-r--r-- | templates/org/team/members.tmpl | 2 | ||||
-rw-r--r-- | templates/org/team/repositories.tmpl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/org/team/members.tmpl b/templates/org/team/members.tmpl index b9069c90de..ecb7830f18 100644 --- a/templates/org/team/members.tmpl +++ b/templates/org/team/members.tmpl @@ -9,7 +9,7 @@ {{template "org/team/navbar" .}} {{if .IsOrganizationOwner}} <div class="ui attached segment"> - <form class="ui form" id="add-member-form" action="{{$.OrgLink}}/teams/{{$.Team.LowerName | PathEscape}}/action/add" method="post"> + <form class="ui form ignore-dirty" id="add-member-form" action="{{$.OrgLink}}/teams/{{$.Team.LowerName | PathEscape}}/action/add" method="post"> {{.CsrfTokenHtml}} <input type="hidden" name="uid" value="{{.SignedUser.ID}}"> <div class="inline field ui left"> diff --git a/templates/org/team/repositories.tmpl b/templates/org/team/repositories.tmpl index d4c17d5b00..80bdf7b3db 100644 --- a/templates/org/team/repositories.tmpl +++ b/templates/org/team/repositories.tmpl @@ -11,7 +11,7 @@ {{if $canAddRemove}} <div class="ui attached segment" id="repo-top-segment"> <div class="inline ui field left"> - <form class="ui form" id="add-repo-form" action="{{$.OrgLink}}/teams/{{$.Team.LowerName | PathEscape}}/action/repo/add" method="post"> + <form class="ui form ignore-dirty" id="add-repo-form" action="{{$.OrgLink}}/teams/{{$.Team.LowerName | PathEscape}}/action/repo/add" method="post"> {{.CsrfTokenHtml}} <div class="inline field ui left"> <div id="search-repo-box" data-uid="{{.Org.ID}}" class="ui search"> |