File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 50
50
<div class="ui divider"></div>
51
51
<div class="ui left">
52
52
{{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}}">
54
54
{{.locale.Tr "repo.milestones.cancel"}}
55
55
</a>
56
56
<button class="ui primary button">
Original file line number Diff line number Diff line change 72
72
<div class="ui divider"></div>
73
73
<div class="ui left">
74
74
{{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}}">
76
76
{{.locale.Tr "repo.milestones.cancel"}}
77
77
</a>
78
78
<button class="ui primary button">
Original file line number Diff line number Diff line change @@ -329,7 +329,7 @@ export function initGlobalButtons() {
329
329
// There are many "cancel button" elements in modal dialogs, Fomantic UI expects they are button-like elements but never submit a form.
330
330
// However, Gitea misuses the modal dialog and put the cancel buttons inside forms, so we must prevent the form submission.
331
331
// 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 ) => {
333
333
e . preventDefault ( ) ;
334
334
} ) ;
335
335
You can’t perform that action at this time.
0 commit comments