From 90d3f91df7851b97f07b903f353497742f80d325 Mon Sep 17 00:00:00 2001 From: Aurélien Bompard Date: Thu, 13 Dec 2012 15:45:39 +0100 Subject: Fix quoting in the message view Refs: #24 --- hyperkitty/static/css/style.css | 2 +- hyperkitty/static/js/hyperkitty.js | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'hyperkitty/static') diff --git a/hyperkitty/static/css/style.css b/hyperkitty/static/css/style.css index 57b8fcf..9ac592a 100644 --- a/hyperkitty/static/css/style.css +++ b/hyperkitty/static/css/style.css @@ -709,8 +709,8 @@ ul.attachments-list li { margin-top: 5px; } +.first_email_body .quoted-text, .email_body .quoted-text { - display: none; border-left: 2px solid rgb(55, 113, 200); padding-left: 0.2em; } diff --git a/hyperkitty/static/js/hyperkitty.js b/hyperkitty/static/js/hyperkitty.js index c709bce..c4a1bbe 100644 --- a/hyperkitty/static/js/hyperkitty.js +++ b/hyperkitty/static/js/hyperkitty.js @@ -153,6 +153,14 @@ function setup_attachments() { }); } +function setup_quotes() { + $('div.email_body .quoted-switch a') + .add('div.first_email_body .quoted-switch a') + .click(function() { + $(this).parent().next(".quoted-text").slideToggle('fast'); + return false; + }); +} /* @@ -163,4 +171,5 @@ $(document).ready(function() { setup_vote(); setup_attachments(); setup_add_tag(); + setup_quotes(); }); -- cgit