summaryrefslogtreecommitdiffstats
path: root/hyperkitty/templates
diff options
context:
space:
mode:
authorAurélien Bompard <aurelien@bompard.org>2013-02-07 19:06:22 +0100
committerAurélien Bompard <aurelien@bompard.org>2013-02-07 19:06:38 +0100
commit13d11029ba45fa49855b3e346e3425ac1dce0702 (patch)
tree6952d56ed019bae0abf850eaa4939f3e6cb406da /hyperkitty/templates
parentaae9a5a1b6c75095817c0914ef7b92e63903fc2e (diff)
downloadhyperkitty-13d11029ba45fa49855b3e346e3425ac1dce0702.tar.gz
hyperkitty-13d11029ba45fa49855b3e346e3425ac1dce0702.tar.xz
hyperkitty-13d11029ba45fa49855b3e346e3425ac1dce0702.zip
Fix votes, and a javascript error (#37)
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: #}