Make Tags On This Page do nothing when in expression mode.

This commit is contained in:
voussoir 2017-04-20 18:32:29 -07:00
parent d95eac4bb6
commit 5d53d68cec

View file

@ -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,