Commit 02ec106f authored by bbaer's avatar bbaer
Browse files

hiding when nothing to clear

parent 87f59073
Pipeline #2911 passed with stages
in 3 minutes and 35 seconds
......@@ -72,7 +72,11 @@ $(document).ready( function () {
});
$(this).after(closeButton);
$(this).on("input", function() {
closeButton.removeClass("hidden");
if(myInput.val() != '') {
closeButton.removeClass("hidden");
} else {
closeButton.addClass("hidden");
}
});
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment