summaryrefslogtreecommitdiffstats
path: root/hyperkitty/templates/index.html
diff options
context:
space:
mode:
authorAurélien Bompard <aurelien@bompard.org>2013-11-28 10:41:33 +0100
committerAurélien Bompard <aurelien@bompard.org>2013-11-28 10:42:13 +0100
commit2b41185df80e2351ed3d1c0de38ff9bb42902880 (patch)
tree848d86c944139522108e0b953aab5b3257d94027 /hyperkitty/templates/index.html
parent7a39419f2b3455ef9859219c68bd17a19bfcd82c (diff)
downloadhyperkitty-2b41185df80e2351ed3d1c0de38ff9bb42902880.tar.gz
hyperkitty-2b41185df80e2351ed3d1c0de38ff9bb42902880.tar.xz
hyperkitty-2b41185df80e2351ed3d1c0de38ff9bb42902880.zip
Add toggles to hide inactive and private lists
Diffstat (limited to 'hyperkitty/templates/index.html')
-rw-r--r--hyperkitty/templates/index.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/hyperkitty/templates/index.html b/hyperkitty/templates/index.html
index 8b9ca13..3dd9d79 100644
--- a/hyperkitty/templates/index.html
+++ b/hyperkitty/templates/index.html
@@ -59,6 +59,11 @@
{% endif %}
</h1>
+<p class="hide-switches">
+ <label><input type="checkbox" value="inactive" /> Hide inactive</label>
+ <label><input type="checkbox" value="private" /> Hide private</label>
+</p>
+
{% if all_lists %}
<table class="lists table">
<thead>
@@ -169,6 +174,14 @@
var target = $("a[name="+$(this).attr("href").substring(1)+"]");
$(window).scrollTop(target.offset().top - 70);
});
+ $(".hide-switches input").click(function() {
+ var target = $("table.lists tr.list."+$(this).val());
+ if ($(this).prop("checked")) {
+ target.hide();
+ } else {
+ target.show();
+ }
+ });
});
</script>