From 519dc8202365859af7b557f1d6add9a95b468a18 Mon Sep 17 00:00:00 2001 From: Jason Streifling Date: Sun, 8 Oct 2023 11:01:57 +0200 Subject: [PATCH] Automatisches Suchen ohne Submit-Button --- main.go | 2 +- templates/table.html | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/main.go b/main.go index 42c39ed..b06a6db 100644 --- a/main.go +++ b/main.go @@ -20,10 +20,10 @@ func main() { mux.Handle("/static/", http.StripPrefix("/static/", http.FileServer(http.Dir("static/")))) mux.HandleFunc("/", server.DisplayTable(db)) - mux.HandleFunc("/submit/", server.SubmitForm(db, &i, &j)) mux.HandleFunc("/search/", server.DisplayResults(db)) mux.HandleFunc("/new-briefing/", server.DisplayForm(&i)) mux.HandleFunc("/add-participant/", server.AddParticipant(&i)) + mux.HandleFunc("/submit/", server.SubmitForm(db, &i, &j)) log.Fatalln(http.ListenAndServe(":8080", mux)) } diff --git a/templates/table.html b/templates/table.html index 1f86b88..f8b6ae8 100644 --- a/templates/table.html +++ b/templates/table.html @@ -19,10 +19,8 @@ {{ define "content" }}
- - +