mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2025-01-31 11:29:09 +00:00
Make <textarea> auto-focus on the editor page
This commit is contained in:
parent
60deff0ecd
commit
feea6bf3d7
@ -76,7 +76,7 @@
|
|||||||
{%s= warning %}
|
{%s= warning %}
|
||||||
<form method="post" class="edit-form"
|
<form method="post" class="edit-form"
|
||||||
action="/upload-text/{%s hyphaName %}">
|
action="/upload-text/{%s hyphaName %}">
|
||||||
<textarea name="text" class="edit-form__textarea">{%s textAreaFill %}</textarea>
|
<textarea name="text" class="edit-form__textarea" autofocus>{%s textAreaFill %}</textarea>
|
||||||
<br/>
|
<br/>
|
||||||
<input type="submit" name="action" value="Save" class="edit-form__save"/>
|
<input type="submit" name="action" value="Save" class="edit-form__save"/>
|
||||||
<input type="submit" name="action" value="Preview" class="edit-form__preview">
|
<input type="submit" name="action" value="Preview" class="edit-form__preview">
|
||||||
|
@ -199,7 +199,7 @@ func StreamEditHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName, text
|
|||||||
qw422016.E().S(hyphaName)
|
qw422016.E().S(hyphaName)
|
||||||
//line views/mutators.qtpl:78
|
//line views/mutators.qtpl:78
|
||||||
qw422016.N().S(`">
|
qw422016.N().S(`">
|
||||||
<textarea name="text" class="edit-form__textarea">`)
|
<textarea name="text" class="edit-form__textarea" autofocus>`)
|
||||||
//line views/mutators.qtpl:79
|
//line views/mutators.qtpl:79
|
||||||
qw422016.E().S(textAreaFill)
|
qw422016.E().S(textAreaFill)
|
||||||
//line views/mutators.qtpl:79
|
//line views/mutators.qtpl:79
|
||||||
|
Loading…
Reference in New Issue
Block a user