Browse Source

clear text field in case of invalid input

master
Fr3deric 6 years ago
parent
commit
818685cfdc
  1. 2
      journalmarks/templates/index.html

2
journalmarks/templates/index.html

@ -34,7 +34,7 @@ function run() { @@ -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 = '';
}
});

Loading…
Cancel
Save