From 7cf17aa614277e2405945de1008f0b97d7537bf6 Mon Sep 17 00:00:00 2001 From: Janne Koschinski <janne@kuschku.de> Date: Sun, 18 Mar 2018 23:19:07 +0100 Subject: [PATCH] Attempt at autosave --- page_image_detail.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/page_image_detail.go b/page_image_detail.go index 57102c2..62d1eff 100644 --- a/page_image_detail.go +++ b/page_image_detail.go @@ -55,7 +55,7 @@ func pageImageDetail(ctx PageContext) http.Handler { if err != nil { panic(err) } - if r.PostFormValue("fromjs") == "true" { + if r.PostFormValue("from_js") == "true" { returnJson(w, true) } else { http.Redirect(w, r, r.URL.Path, http.StatusFound) -- GitLab