summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2021-11-19 00:45:00 +0800
committerGitHub <noreply@github.com>2021-11-19 00:45:00 +0800
commit55be5fe3399d18b7d2477519707aecf5f99f1de5 (patch)
tree7b3afb5cf60c2a1ab99bb01cbb114ed4dd316ed9 /templates
parente1d655991b2d6caf332918bda267ec57edf58bb7 (diff)
downloadgitea-55be5fe3399d18b7d2477519707aecf5f99f1de5.tar.gz
gitea-55be5fe3399d18b7d2477519707aecf5f99f1de5.zip
Refactor repo-legacy.js, remove messy global variables. Fix errors. (#17646)
Refactor repo-legacy.js, remove messy global variables. Fix errors. Fix an error in Sortable Fix a incorrect call assignMenuAttributes from the template
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/diff/comment_form.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/diff/comment_form.tmpl b/templates/repo/diff/comment_form.tmpl
index 9c02c9de15..cb7234b3b0 100644
--- a/templates/repo/diff/comment_form.tmpl
+++ b/templates/repo/diff/comment_form.tmpl
@@ -9,7 +9,7 @@
<input type="hidden" name="diff_start_cid">
<input type="hidden" name="diff_end_cid">
<input type="hidden" name="diff_base_cid">
- <div class="ui top tabular menu" {{if not $.hidden}}onload="assignMenuAttributes(this)" {{end}}data-write="write" data-preview="preview">
+ <div class="ui top tabular menu" data-write="write" data-preview="preview">
<a class="active item" data-tab="write">{{$.root.i18n.Tr "write"}}</a>
<a class="item" data-tab="preview" data-url="{{$.root.Repository.APIURL}}/markdown" data-context="{{$.root.RepoLink}}">{{$.root.i18n.Tr "preview"}}</a>
</div>