dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit 0da601c01fa83f6a24914ff25ea2a88e043915af
parent dfbb8bb8b6ff270875b1894cbb60e1cff4bac17e
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Tue, 15 Nov 2022 13:55:57 -0500

improve template, do not use the list attribute if not enabled

Diffstat:
Mpkg/web/public/views/pages/chat-top-bar.gohtml | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/web/public/views/pages/chat-top-bar.gohtml b/pkg/web/public/views/pages/chat-top-bar.gohtml @@ -71,7 +71,7 @@ {{ if .Data.Multiline }} <textarea type="text" name="message" maxlength="10000" autocomplete="off" autofocus>{{ .Data.Message }}</textarea> {{ else }} - <input value="{{ .Data.Message }}" list="commands" type="text" name="message" maxlength="10000" autocomplete="off" autofocus /> + <input value="{{ .Data.Message }}" type="text" name="message" maxlength="10000" autocomplete="off" autofocus{{ if .AuthUser.AutocompleteCommandsEnabled }} list="commands"{{ end }} /> {{ if .AuthUser.AutocompleteCommandsEnabled }} <datalist id="commands"> {{ range .Data.CommandsList }}<option value="{{ . }}">{{ end }}