summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--hyperkitty/templates/thread.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/hyperkitty/templates/thread.html b/hyperkitty/templates/thread.html
index add1fba..cd4efbf 100644
--- a/hyperkitty/templates/thread.html
+++ b/hyperkitty/templates/thread.html
@@ -56,7 +56,13 @@
<script type="text/javascript">
$(document).ready(function() {
// hide quotes by default in the thread view
- $('div.email_body .quoted-text').hide();
+ $('div.email_body .quoted-text').each(function() {
+ var linescount = $(this).text().split("\n").length;
+ if (linescount > 3) {
+ // hide if the quote is more than 3 lines long
+ $(this).hide();
+ }
+ });
});
</script>