Fix element focus issue on project creation.
This commit is contained in:
parent
d2f44f8e5f
commit
841264de0f
|
@ -15,7 +15,7 @@
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
#description.drop {
|
#full_description.drop {
|
||||||
box-shadow: inset 0px 0px 5px yellow;
|
box-shadow: inset 0px 0px 5px yellow;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -151,7 +151,7 @@
|
||||||
<div class="edit-form-row">
|
<div class="edit-form-row">
|
||||||
<div class="pt-input-ns">Short description:</div>
|
<div class="pt-input-ns">Short description:</div>
|
||||||
<div>
|
<div>
|
||||||
<textarea required maxlength="140" name="shortdesc">
|
<textarea id="description" required maxlength="140" name="shortdesc">
|
||||||
{{- .ProjectSettings.Blurb -}}
|
{{- .ProjectSettings.Blurb -}}
|
||||||
</textarea>
|
</textarea>
|
||||||
<div class="c--dim f7">Plaintext only. No links or markdown.</div>
|
<div class="c--dim f7">Plaintext only. No links or markdown.</div>
|
||||||
|
@ -173,7 +173,7 @@
|
||||||
<div class="edit-form-row">
|
<div class="edit-form-row">
|
||||||
<div class="pt-input-ns">Full description:</div>
|
<div class="pt-input-ns">Full description:</div>
|
||||||
<div>
|
<div>
|
||||||
<textarea id="description" class="w-100 h5 minh-5 mono lh-copy" name="description">
|
<textarea id="full_description" class="w-100 h5 minh-5 mono lh-copy" name="full_description">
|
||||||
{{- .ProjectSettings.Description -}}
|
{{- .ProjectSettings.Description -}}
|
||||||
</textarea>
|
</textarea>
|
||||||
<div class="flex justify-end items-center mt2">
|
<div class="flex justify-end items-center mt2">
|
||||||
|
@ -264,7 +264,7 @@
|
||||||
{{ else }}
|
{{ else }}
|
||||||
const projectName = "{{ .Project.Name }}";
|
const projectName = "{{ .Project.Name }}";
|
||||||
{{ end }}
|
{{ end }}
|
||||||
const description = document.querySelector('#description');
|
const description = document.querySelector('#full_description');
|
||||||
const descPreview = document.querySelector('#desc-preview');
|
const descPreview = document.querySelector('#desc-preview');
|
||||||
const { clear: clearDescription } = autosaveContent({
|
const { clear: clearDescription } = autosaveContent({
|
||||||
inputEl: description,
|
inputEl: description,
|
||||||
|
|
|
@ -698,7 +698,7 @@ func ParseProjectEditForm(c *RequestContext) ProjectEditFormResult {
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
links := ParseLinks(c.Req.Form.Get("links"))
|
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)
|
parsedDescription := parsing.ParseMarkdown(description, parsing.ForumRealMarkdown)
|
||||||
|
|
||||||
lifecycleStr := c.Req.Form.Get("lifecycle")
|
lifecycleStr := c.Req.Form.Get("lifecycle")
|
||||||
|
|
Loading…
Reference in New Issue