diff --git a/templates/web/thesaurus/thesaurus.html.twig b/templates/web/thesaurus/thesaurus.html.twig index 48b4492a0b..3a950ea27e 100644 --- a/templates/web/thesaurus/thesaurus.html.twig +++ b/templates/web/thesaurus/thesaurus.html.twig @@ -39,6 +39,14 @@ self.location.replace("thesaurus.php?piv={{ piv }}&bid={{ bid }}") ; } + function inputChanged() { + if ($("[name=term]").val().length > 0) { + $("[name=term]").css('border-color', ''); + } else { + $("[name=term]").css('border-color', '#F00'); + } + } + function test(div) { t = document.getElementById(div).innerHTML; @@ -262,7 +270,7 @@