aboutsummaryrefslogtreecommitdiff
path: root/templates/repo/create.tmpl
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2018-06-11 21:06:24 +0800
committerUnknwon <u@gogs.io>2018-06-11 21:06:24 +0800
commitdfd494c113cfa2a25ee0c2f5a12c6403f24742a4 (patch)
treea1b7e8c997bf77790fd8402e19cc642530f360bf /templates/repo/create.tmpl
parent57897cc8c2c90ab1566a65bcd1eabfd41a906070 (diff)
repo: minor improve for PR #5219 and support UTF-8 byte count
Diffstat (limited to 'templates/repo/create.tmpl')
-rw-r--r--templates/repo/create.tmpl11
1 files changed, 1 insertions, 10 deletions
diff --git a/templates/repo/create.tmpl b/templates/repo/create.tmpl
index 89fe133c..a7580d72 100644
--- a/templates/repo/create.tmpl
+++ b/templates/repo/create.tmpl
@@ -52,7 +52,7 @@
</div>
<div class="inline field {{if .Err_Description}}error{{end}}">
<label for="description">{{.i18n.Tr "repo.repo_desc"}}</label>
- <textarea id="description" name="description" rows="3">{{.description}}</textarea>
+ <textarea class="autosize" id="description" name="description" rows="3">{{.description}}</textarea>
<span class="help">{{.i18n.Tr "repo.repo_description_helper" | Safe}}</span>
<span class="help">{{.i18n.Tr "repo.repo_description_length"}}: <span id="descLength"></span></span>
</div>
@@ -116,13 +116,4 @@
</div>
</div>
-<script type="text/javascript">
-$(document).ready(function(){
- if (typeof window.autosize !== "undefined") {
- autosize($('#description'));
- }
- showMessageMaxLength(512, 'description', 'descLength');
-});
-</script>
-
{{template "base/footer" .}}