Fixed dialog show for quickbox transform

This commit is contained in:
roberto 2024-12-14 15:30:49 +01:00
parent a76d0739ba
commit 1a11db7d6c
2 changed files with 3 additions and 4 deletions

View File

@ -1,7 +1,6 @@
{{define "page:content"}}
<dialog class="quickbox-transform">
<div class="w3-modal-content w3-round-large w3-animate-top">
<header class="w3-container">
<dialog id="dialog" class="quickbox-transform">
<header>
<h5>
<i class="bi bi-arrow-up-left-circle-fill" title="Transform"></i> Quicknote transform
</h5>
@ -102,6 +101,5 @@
</div>
</div>
</form>
</div>
</dialog>
{{ end }}

View File

@ -128,6 +128,7 @@ func (app *application) quickboxTransform(w http.ResponseWriter, r *http.Request
app.serverError(w, r, err)
}
w.Header().Add("HX-Trigger-After-Settle", `{"showModalDialog": ""}`)
fullBuf.WriteTo(w)
case http.MethodPost: