From 5562a304c112b6a1880e78114dbeaeb3fdacda99 Mon Sep 17 00:00:00 2001 From: Sergio Oliveira Date: Fri, 4 Oct 2013 10:15:04 -0300 Subject: [PATCH] Making messages in thread collapsable --- src/super_archives/templates/message-thread.html | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/super_archives/templates/message-thread.html b/src/super_archives/templates/message-thread.html index 085ff81..4a36a74 100644 --- a/src/super_archives/templates/message-thread.html +++ b/src/super_archives/templates/message-thread.html @@ -79,7 +79,10 @@ // Binding functions $(function() { - console.debug('binding vote function to btns'); + $(".panel-heading").bind('click', function() { + $(this).next('.panel-collapse').collapse('toggle'); + }); + $('.email-message').each(function() { var msg_id = this.getAttribute('id').split('-')[1]; @@ -114,7 +117,7 @@ {% spaceless %}