From 818685cfdc43a5a771de48523d50d7fe1288784d Mon Sep 17 00:00:00 2001 From: Frederic Date: Sun, 25 Mar 2018 12:25:26 +0200 Subject: [PATCH] clear text field in case of invalid input --- journalmarks/templates/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/journalmarks/templates/index.html b/journalmarks/templates/index.html index 3b99884..08bbbe1 100644 --- a/journalmarks/templates/index.html +++ b/journalmarks/templates/index.html @@ -34,7 +34,7 @@ function run() { } else if(url.match(/^[a-z0-9]{4}$/)) { window.location.href = '/' + url; } else { - console.log('not a URL and not a tag'); + document.getElementById('url').value = ''; } });