diff options
author | Aamir Khan <syst3m.w0rm@gmail.com> | 2012-08-10 06:21:15 +0530 |
---|---|---|
committer | Aamir Khan <syst3m.w0rm@gmail.com> | 2012-08-10 06:21:15 +0530 |
commit | e5dc1c48ea48177e21cff6670a2dbf0c4c4cf262 (patch) | |
tree | 8dd57320e742394034515158c013915595877c1a /hyperkitty/templates/thread.html | |
parent | 6da4589cf562033fba6e1f5d910a28dbe39dc313 (diff) | |
download | hyperkitty-e5dc1c48ea48177e21cff6670a2dbf0c4c4cf262.tar.gz hyperkitty-e5dc1c48ea48177e21cff6670a2dbf0c4c4cf262.tar.xz hyperkitty-e5dc1c48ea48177e21cff6670a2dbf0c4c4cf262.zip |
Feature : Add tag to email threads
Diffstat (limited to 'hyperkitty/templates/thread.html')
-rw-r--r-- | hyperkitty/templates/thread.html | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/hyperkitty/templates/thread.html b/hyperkitty/templates/thread.html index a1bc38c..20248f1 100644 --- a/hyperkitty/templates/thread.html +++ b/hyperkitty/templates/thread.html @@ -93,7 +93,24 @@ }); + $("#add_tag_form").submit( function () { + + {% if user.is_authenticated %} + $.ajax({ + type: "POST", + data : $(this).serialize(), + url: "{% url add_tag mlist_fqdn=list_address, email_id=first_mail.message_id %}", + success: function(data){ + console.log('Tag is added successfully'); + } + }); + return false; + {% else %} + alert('You need to login in order to add tag'); + {% endif %} + }); + + }); </script> - {% endblock %} |