From 5d53d68cece46bf7b1d4a63975cc55dd7d097e47 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Thu, 20 Apr 2017 18:32:29 -0700 Subject: [PATCH] Make Tags On This Page do nothing when in expression mode. --- templates/search.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/search.html b/templates/search.html index c8eb702..9356dcb 100644 --- a/templates/search.html +++ b/templates/search.html @@ -301,6 +301,11 @@ function add_searchtag(box, value, inputted_list, li_class) Called by hitting Enter within a must/may/forbid field. Checks whether the tag exists and adds it to the query. */ + if (box.offsetParent === null) + { + // The box is hidden probably because we're in Expression mode. + return; + } console.log("adding " + value); var already_have = false; // We're going to be doing some in-place splicing to remove,