summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAurélien Bompard <aurelien@bompard.org>2012-12-17 13:27:49 +0100
committerAurélien Bompard <aurelien@bompard.org>2012-12-17 13:27:49 +0100
commit73b9de9309220b424f57c592b6553ba020767f38 (patch)
tree721cf1d607094978cd96d7fe490cdbe577224acd
parenta132cf2b84bd250514c33e6393e9d9ef31b0b7c9 (diff)
downloadhyperkitty-73b9de9309220b424f57c592b6553ba020767f38.tar.gz
hyperkitty-73b9de9309220b424f57c592b6553ba020767f38.tar.xz
hyperkitty-73b9de9309220b424f57c592b6553ba020767f38.zip
Only hide the quote if it is more than 3 lines long
-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>