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/js/hyperkitty.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'hyperkitty/static/js/hyperkitty.js') 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