From 1a11db7d6cffba024ca9265d4a446da60ccea0fd Mon Sep 17 00:00:00 2001 From: roberto Date: Sat, 14 Dec 2024 15:30:49 +0100 Subject: [PATCH] Fixed dialog show for quickbox transform --- assets/templates/quickbox/transform.tmpl | 6 ++---- cmd/web/quickbox_handlers.go | 1 + 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/assets/templates/quickbox/transform.tmpl b/assets/templates/quickbox/transform.tmpl index b834942..c51e286 100644 --- a/assets/templates/quickbox/transform.tmpl +++ b/assets/templates/quickbox/transform.tmpl @@ -1,7 +1,6 @@ {{define "page:content"}} - -
-
+ +
Quicknote transform
@@ -102,6 +101,5 @@
-
{{ end }} diff --git a/cmd/web/quickbox_handlers.go b/cmd/web/quickbox_handlers.go index e977c07..3a4ae51 100644 --- a/cmd/web/quickbox_handlers.go +++ b/cmd/web/quickbox_handlers.go @@ -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: