aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFeuerfuchs <git@feuerfuchs.dev>2019-06-05 08:55:29 +0200
committerFeuerfuchs <git@feuerfuchs.dev>2019-06-05 08:55:29 +0200
commit005dd00b7ff4bcf42410f440d91b57875fe8a90f (patch)
tree74c35ec29021725715ea92d9f9a1568594e0db32
parentAdd interlacing background effect (diff)
downloadgopherproxy-005dd00b7ff4bcf42410f440d91b57875fe8a90f.tar.gz
gopherproxy-005dd00b7ff4bcf42410f440d91b57875fe8a90f.tar.bz2
gopherproxy-005dd00b7ff4bcf42410f440d91b57875fe8a90f.zip
Don't submit when QRY prompt cancelled
-rw-r--r--template.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/template.go b/template.go
index e7c6634..6e541e2 100644
--- a/template.go
+++ b/template.go
@@ -24,7 +24,7 @@ while (i--) {
24 qry[i].addEventListener('click', function(e) { 24 qry[i].addEventListener('click', function(e) {
25 e.preventDefault(); 25 e.preventDefault();
26 var resp=prompt("Please enter required input: ", "") 26 var resp=prompt("Please enter required input: ", "")
27 if (resp !== "") window.location = e.target.href + "?" + resp 27 if (resp !== null && resp !== "") window.location = e.target.href + "?" + resp
28 return false; 28 return false;
29 }) 29 })
30} 30}