From 0e0f296270bfca2872f7a2d80ec8e5d1af63f9d8 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Thu, 2 Apr 2020 22:52:33 -0700 Subject: [PATCH] Let tags on this page buttons execute search immediately. 1. When the list is long, scrolling back up to hit to search button is annoying. 2. If you select too many, there's no way to know if you're going to wind up constructing a search with 0 results thus wasting your time. --- frontends/etiquette_flask/templates/search.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontends/etiquette_flask/templates/search.html b/frontends/etiquette_flask/templates/search.html index eab43df..4d172c7 100644 --- a/frontends/etiquette_flask/templates/search.html +++ b/frontends/etiquette_flask/templates/search.html @@ -599,6 +599,7 @@ function tags_on_this_page_add_must(event, tagname) inputted_musts, "search_builder_musts_inputted" ); + submit_search(); return false; } function tags_on_this_page_add_may(event, tagname) @@ -609,6 +610,7 @@ function tags_on_this_page_add_may(event, tagname) inputted_mays, "search_builder_mays_inputted" ); + submit_search(); return false; } function tags_on_this_page_add_forbid(event, tagname) @@ -619,6 +621,7 @@ function tags_on_this_page_add_forbid(event, tagname) inputted_forbids, "search_builder_forbids_inputted" ); + submit_search(); return false; }