summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorMichael Kuhn <suraia@ikkoku.de>2018-07-24 12:20:52 +0200
committerJonas Franz <info@jonasfranz.software>2018-07-24 12:20:52 +0200
commit344dc07239301194fa4220a27ce4dd24396cf25c (patch)
treefc85d8808469dc90383d5a57cf78e46f0d1a167e /templates
parentba358ecbf5d58dc6b2f166a84a4b6c6633cfa397 (diff)
downloadgitea-344dc07239301194fa4220a27ce4dd24396cf25c.tar.gz
gitea-344dc07239301194fa4220a27ce4dd24396cf25c.zip
Add shortcut to save wiki page (#4452)
This allows saving the wiki page with Ctrl-Enter.
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/wiki/new.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/wiki/new.tmpl b/templates/repo/wiki/new.tmpl
index 34c6b2d0ca..7dc066ffb8 100644
--- a/templates/repo/wiki/new.tmpl
+++ b/templates/repo/wiki/new.tmpl
@@ -17,7 +17,7 @@
<input name="title" value="{{.title}}" autofocus required>
</div>
<div class="field">
- <textarea id="edit_area" name="content" data-id="wiki-{{.title}}" data-url="{{AppSubUrl}}/api/v1/markdown" data-context="{{.RepoLink}}/wiki" required>{{if .PageIsWikiEdit}}{{.content}}{{else}}{{.i18n.Tr "repo.wiki.welcome"}}{{end}}</textarea>
+ <textarea class="js-quick-submit" id="edit_area" name="content" data-id="wiki-{{.title}}" data-url="{{AppSubUrl}}/api/v1/markdown" data-context="{{.RepoLink}}/wiki" required>{{if .PageIsWikiEdit}}{{.content}}{{else}}{{.i18n.Tr "repo.wiki.welcome"}}{{end}}</textarea>
</div>
<div class="field">
<input name="message" placeholder="{{.i18n.Tr "repo.wiki.default_commit_message"}}">