Skip to content

Commit 3b66848

Browse files
committed
fix
1 parent 9928a28 commit 3b66848

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

templates/projects/new.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
<div class="ui divider"></div>
5151
<div class="ui left">
5252
{{if .PageIsEditProjects}}
53-
<a class="ui button" href="/{{.Org.Name}}/-/projects{{if eq .redirect "project"}}/{{.projectID}}{{end}}">
53+
<a class="ui cancel button" href="/{{.Org.Name}}/-/projects{{if eq .redirect "project"}}/{{.projectID}}{{end}}">
5454
{{.locale.Tr "repo.milestones.cancel"}}
5555
</a>
5656
<button class="ui primary button">

templates/repo/projects/new.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
<div class="ui divider"></div>
7373
<div class="ui left">
7474
{{if .PageIsEditProjects}}
75-
<a class="ui button" href="{{.RepoLink}}/projects{{if eq .redirect "project"}}/{{.projectID}}{{end}}">
75+
<a class="ui cancel button" href="{{.RepoLink}}/projects{{if eq .redirect "project"}}/{{.projectID}}{{end}}">
7676
{{.locale.Tr "repo.milestones.cancel"}}
7777
</a>
7878
<button class="ui primary button">

web_src/js/features/common-global.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ export function initGlobalButtons() {
329329
// There are many "cancel button" elements in modal dialogs, Fomantic UI expects they are button-like elements but never submit a form.
330330
// However, Gitea misuses the modal dialog and put the cancel buttons inside forms, so we must prevent the form submission.
331331
// There are a few cancel buttons in non-modal forms, and there are some dynamically created forms (eg: the "Edit Issue Content")
332-
$(document).on('click', 'form .ui.cancel.button', (e) => {
332+
$(document).on('click', 'form button.ui.cancel.button', (e) => {
333333
e.preventDefault();
334334
});
335335

0 commit comments

Comments
 (0)