summaryrefslogtreecommitdiff
path: root/httemplate/search/elements/checkbox-foot.html
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/search/elements/checkbox-foot.html')
-rw-r--r--httemplate/search/elements/checkbox-foot.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/httemplate/search/elements/checkbox-foot.html b/httemplate/search/elements/checkbox-foot.html
index cc4bac69b..c47009425 100644
--- a/httemplate/search/elements/checkbox-foot.html
+++ b/httemplate/search/elements/checkbox-foot.html
@@ -75,6 +75,15 @@ function setAll(setTo) {
checkboxes[i].checked = setTo;
}
}
+function toCGIString() {
+ var out = '';
+ for (var i = 0; i < checkboxes.length; i++) {
+ if (checkboxes[i].checked) {
+ out += '&' + checkboxes[i].name + '=' + checkboxes[i].value;
+ }
+ }
+ return out;
+}
</SCRIPT>
<%init>
my %opt = @_;