diff options
author | a1012112796 <1012112796@qq.com> | 2022-05-07 20:24:02 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-07 14:24:02 +0200 |
commit | 672e5a752db8dd732ede058f97acf5336b651afb (patch) | |
tree | 0cd66d8d12d1e9519d45366fb1845b3748fb9664 /templates/repo | |
parent | 0eac09e0662ae70b8b6e3e5e8c33547c79ff7124 (diff) | |
download | gitea-672e5a752db8dd732ede058f97acf5336b651afb.tar.gz gitea-672e5a752db8dd732ede058f97acf5336b651afb.zip |
prevent double click new issue/pull/comment button (#16157)
* prevent double click new issue/pull/comment button
when network is not good, these button maybe
double clicked, then more than one same issues
pulls or comments will be created. this pull
request will fix this bug.
Signed-off-by: a1012112796 <1012112796@qq.com>
Diffstat (limited to 'templates/repo')
-rw-r--r-- | templates/repo/issue/new_form.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/issue/view_content.tmpl | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/templates/repo/issue/new_form.tmpl b/templates/repo/issue/new_form.tmpl index 9a4548643f..9e6a69f71a 100644 --- a/templates/repo/issue/new_form.tmpl +++ b/templates/repo/issue/new_form.tmpl @@ -20,7 +20,7 @@ </div> {{template "repo/issue/comment_tab" .}} <div class="text right"> - <button class="ui green button" tabindex="6"> + <button class="ui green button loading-button" tabindex="6"> {{if .PageIsComparePull}} {{.i18n.Tr "repo.pulls.create"}} {{else}} diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl index b5f838e9d0..91af5160b6 100644 --- a/templates/repo/issue/view_content.tmpl +++ b/templates/repo/issue/view_content.tmpl @@ -121,7 +121,7 @@ </div> {{end}} {{end}} - <button class="ui green button" tabindex="5"> + <button class="ui green button loading-button" tabindex="5"> {{.i18n.Tr "repo.issues.create_comment"}} </button> </div> @@ -172,7 +172,7 @@ </div> {{end}} {{end}} - <button class="ui green button" tabindex="5"> + <button class="ui green button loading-button" tabindex="5"> {{.i18n.Tr "repo.issues.create_comment"}} </button> </div> |