diff options
author | Drew DeVault <sir@cmpwn.com> | 2020-11-13 13:32:07 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2020-11-13 13:32:07 -0500 |
commit | 1565a335db42bb68c4cf185390c2ccb498e854b5 (patch) | |
tree | 405dba2fb900f9c3feb099485836b47221051ee2 /themes/alps | |
parent | 1d0630dde9df61ecdeaf1642f00d9ea5880a9159 (diff) | |
download | alps-1565a335db42bb68c4cf185390c2ccb498e854b5.tar.gz alps-1565a335db42bb68c4cf185390c2ccb498e854b5.zip |
alps/compose.html: fix autofocus on wrong field
Diffstat (limited to 'themes/alps')
-rw-r--r-- | themes/alps/compose.html | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/themes/alps/compose.html b/themes/alps/compose.html index 82ee283..e81b7ae 100644 --- a/themes/alps/compose.html +++ b/themes/alps/compose.html @@ -24,11 +24,17 @@ value="{{.Message.ToString}}" multiple list="emails" - {{ if not .Message.To }} autofocus{{ end }} + {{ if not .Message.ToString }} autofocus{{ end }} /> <label>Subject</label> - <input type="text" name="subject" id="subject" value="{{.Message.Subject}}" {{ if .Message.To }} autofocus{{ end }}/> + <input + type="text" + name="subject" + id="subject" + value="{{.Message.Subject}}" + {{ if .Message.ToString }} autofocus{{ end }} + /> <label>Attachments</label> <input type="file" name="attachments" id="attachments" multiple> |