From c629cbceabddd5335dc42f7a3916e9c3d1a06db8 Mon Sep 17 00:00:00 2001 From: Aamir Khan Date: Fri, 10 Aug 2012 06:39:29 +0530 Subject: Feature : Add tag to email threads --- hyperkitty/templates/thread.html | 2 +- hyperkitty/templates/threads/add_tag_form.html | 2 +- hyperkitty/templates/threads/right_col.html | 2 +- hyperkitty/views/thread.py | 7 +++++++ 4 files changed, 10 insertions(+), 3 deletions(-) (limited to 'hyperkitty') diff --git a/hyperkitty/templates/thread.html b/hyperkitty/templates/thread.html index 20248f1..f3b521e 100644 --- a/hyperkitty/templates/thread.html +++ b/hyperkitty/templates/thread.html @@ -99,7 +99,7 @@ $.ajax({ type: "POST", data : $(this).serialize(), - url: "{% url add_tag mlist_fqdn=list_address, email_id=first_mail.message_id %}", + url: "{% url add_tag mlist_fqdn=list_address, email_id=threadid %}", success: function(data){ console.log('Tag is added successfully'); } diff --git a/hyperkitty/templates/threads/add_tag_form.html b/hyperkitty/templates/threads/add_tag_form.html index 9df2196..f719152 100644 --- a/hyperkitty/templates/threads/add_tag_form.html +++ b/hyperkitty/templates/threads/add_tag_form.html @@ -3,7 +3,7 @@ {% block header %} {% endblock %} {% block content %} -
+ {% csrf_token %} {{ addtag_form }}