summaryrefslogtreecommitdiffstats
path: root/hyperkitty/templates
diff options
context:
space:
mode:
Diffstat (limited to 'hyperkitty/templates')
-rw-r--r--hyperkitty/templates/thread_list.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/hyperkitty/templates/thread_list.html b/hyperkitty/templates/thread_list.html
index c7857c8..cb95daa 100644
--- a/hyperkitty/templates/thread_list.html
+++ b/hyperkitty/templates/thread_list.html
@@ -50,6 +50,23 @@
{% block additionaljs %}
<script src="{{ STATIC_URL }}libs/jquery.expander.js"></script>
+<script>
+$(document).ready(function() {
+ $('span.expander').expander({
+ slicePoint: 500,
+ userCollapseText : '\n[View Less]',
+ expandText : '\n[View More]',
+ beforeExpand: function() {
+ $(this).removeClass("collapsed");
+ $(this).addClass("expanded");
+ },
+ onCollapse: function() {
+ $(this).removeClass("expanded");
+ $(this).addClass("collapsed");
+ }
+ });
+});
+</script>
{% endblock %}
{# vim: set noet: #}