diff options
author | silverwind <me@silverwind.io> | 2021-04-10 01:42:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-09 19:42:38 -0400 |
commit | 216976247c1bb958f01a0b33c5f457d7fed62a4d (patch) | |
tree | 52b5013ceb9fe82e4664a51de2783f1517ff5bfd /templates/repo/diff/comment_form.tmpl | |
parent | b9ed3cbc26ca20e0c88a66ed42dbc1268a2343bc (diff) | |
download | gitea-216976247c1bb958f01a0b33c5f457d7fed62a4d.tar.gz gitea-216976247c1bb958f01a0b33c5f457d7fed62a4d.zip |
Remove usage of JS globals (#15378)
Refactor the exported globals in index.js to JS-initialized event
handlers.
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'templates/repo/diff/comment_form.tmpl')
-rw-r--r-- | templates/repo/diff/comment_form.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/diff/comment_form.tmpl b/templates/repo/diff/comment_form.tmpl index b12beeab82..c82d32c214 100644 --- a/templates/repo/diff/comment_form.tmpl +++ b/templates/repo/diff/comment_form.tmpl @@ -44,7 +44,7 @@ {{end}} {{end}} {{if or (not $.HasComments) $.hidden}} - <button type="button" class="ui submit tiny basic button btn-cancel" onclick="window.cancelCodeComment(this);">{{$.root.i18n.Tr "cancel"}}</button> + <button type="button" class="ui submit tiny basic button btn-cancel cancel-code-comment">{{$.root.i18n.Tr "cancel"}}</button> {{end}} </div> </div> |