Commit b4c8b3df authored by Kedar A.'s avatar Kedar A. 💻

Sending node's _id of discussion object

parent 7a207fff
......@@ -228,13 +228,14 @@
type: "POST",
url: "{% url 'discussion_reply' group_id %}",
url: "{% url 'discussion_reply' group_id node.pk %}",
data: {
"csrfmiddlewaretoken": "{{ csrf_token }}",
"prior_node_id": priorNodeId,
"reply_text_content": replyContent
},
success: function(data){
......
......@@ -459,6 +459,7 @@ ul#navigation li a.last {
</a></dd>
{% endif %}
<!-- ---END of Discussion -->
{% else %}
<!-- If its group then show management tab only for group admins and superuser-->
......
......@@ -95,7 +95,7 @@ urlpatterns = patterns('',
# --discussion--
url(r'^(?P<group_id>[^/]+)/(?P<node_id>[^/]+)/create_discussion$', 'gnowsys_ndf.ndf.views.methods.create_discussion', name='create_discussion'),
url(r'^(?P<group_id>[^/]+)/discussion_reply$', 'gnowsys_ndf.ndf.views.methods.discussion_reply', name='discussion_reply'),
url(r'^(?P<group_id>[^/]+)/(?P<node_id>[^/]+)/discussion_reply$', 'gnowsys_ndf.ndf.views.methods.discussion_reply', name='discussion_reply'),
url(r'^(?P<group_id>[^/]+)/discussion_delete_reply$', 'gnowsys_ndf.ndf.views.methods.discussion_delete_reply', name='discussion_delete_reply'),
# --end of discussion
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment