Allow checking off tasks from rendered pages
This commit is contained in:
@@ -249,6 +249,10 @@ func (h *handler) handlePost(w http.ResponseWriter, r *http.Request, urlPath, fs
|
||||
h.handleMove(w, r, urlPath, fsPath, query.Get("move"))
|
||||
return
|
||||
}
|
||||
if query.Has("toggle") {
|
||||
h.handleToggle(w, r, fsPath)
|
||||
return
|
||||
}
|
||||
|
||||
if err := r.ParseForm(); err != nil {
|
||||
http.Error(w, "bad request", http.StatusBadRequest)
|
||||
|
||||
Reference in New Issue
Block a user