aboutsummaryrefslogtreecommitdiffstats
path: root/template.go
diff options
context:
space:
mode:
Diffstat (limited to 'template.go')
-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}