From 841264de0fdbaaac9a03e6085484e709d85f3f31 Mon Sep 17 00:00:00 2001 From: Asaf Gartner Date: Sun, 7 Aug 2022 00:40:05 +0300 Subject: [PATCH] Fix element focus issue on project creation. --- src/templates/src/project_edit.html | 8 ++++---- src/website/projects.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/templates/src/project_edit.html b/src/templates/src/project_edit.html index 6f243219..259d4ca8 100644 --- a/src/templates/src/project_edit.html +++ b/src/templates/src/project_edit.html @@ -15,7 +15,7 @@ font-style: italic; } - #description.drop { + #full_description.drop { box-shadow: inset 0px 0px 5px yellow; } @@ -151,7 +151,7 @@
Short description:
-
Plaintext only. No links or markdown.
@@ -173,7 +173,7 @@
Full description:
-
@@ -264,7 +264,7 @@ {{ else }} const projectName = "{{ .Project.Name }}"; {{ end }} - const description = document.querySelector('#description'); + const description = document.querySelector('#full_description'); const descPreview = document.querySelector('#desc-preview'); const { clear: clearDescription } = autosaveContent({ inputEl: description, diff --git a/src/website/projects.go b/src/website/projects.go index 1faca0b1..3b530bab 100644 --- a/src/website/projects.go +++ b/src/website/projects.go @@ -698,7 +698,7 @@ func ParseProjectEditForm(c *RequestContext) ProjectEditFormResult { return res } links := ParseLinks(c.Req.Form.Get("links")) - description := c.Req.Form.Get("description") + description := c.Req.Form.Get("full_description") parsedDescription := parsing.ParseMarkdown(description, parsing.ForumRealMarkdown) lifecycleStr := c.Req.Form.Get("lifecycle")