diff options
author | Michael Kuhn <suraia@ikkoku.de> | 2018-07-24 12:20:52 +0200 |
---|---|---|
committer | Jonas Franz <info@jonasfranz.software> | 2018-07-24 12:20:52 +0200 |
commit | 344dc07239301194fa4220a27ce4dd24396cf25c (patch) | |
tree | fc85d8808469dc90383d5a57cf78e46f0d1a167e /templates | |
parent | ba358ecbf5d58dc6b2f166a84a4b6c6633cfa397 (diff) | |
download | gitea-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.tmpl | 2 |
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"}}"> |