aboutsummaryrefslogtreecommitdiff
path: root/list.php
diff options
context:
space:
mode:
Diffstat (limited to 'list.php')
-rw-r--r--list.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/list.php b/list.php
index e3831a4..ef7f903 100644
--- a/list.php
+++ b/list.php
@@ -6,7 +6,7 @@
</head>
<body>
<h1>HebrewTools Events List</h1>
-Select <a href="#" onclick="check_all_keywords(true);">all</a> / <a href="#" onclick="check_all_keywords(false);">no</a> filters.
+Select <a href="#" onclick="return check_all_keywords(event,true);">all</a> / <a href="#" onclick="return check_all_keywords(event,false);">no</a> filters.
<div id="keyword-filters">
<?php
require_once ('db.php');
@@ -113,10 +113,12 @@ function update_keywords_field ()
elem.value=keywords.join (',');
}
-function check_all_keywords (check)
+function check_all_keywords (event,check)
{
checkboxes.map (cb => cb.checked=check);
update_keywords_field();
+
+ event.preventDefault();
return false;
}