summaryrefslogtreecommitdiff
path: root/gnowsys-ndf/gnowsys_ndf
diff options
context:
space:
mode:
authorKedar Aitawdekar <kedar2a@gmail.com>2015-05-06 13:27:30 +0530
committerKedar Aitawdekar <kedar2a@gmail.com>2015-05-06 13:27:30 +0530
commitb4c8b3df77ab2966304ddcd1069bcb286b8804db (patch)
treee4d1101031e201f5b2529d237d2a07e8f4ba3d08 /gnowsys-ndf/gnowsys_ndf
parent7a207fffba40740a346939e2ff741f94ebd6123f (diff)
downloadgnowsys-b4c8b3df77ab2966304ddcd1069bcb286b8804db.tar.gz
Sending node's _id of discussion object
Diffstat (limited to 'gnowsys-ndf/gnowsys_ndf')
-rw-r--r--gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/discussion.html3
-rw-r--r--gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/node_ajax_view.html1
-rw-r--r--gnowsys-ndf/gnowsys_ndf/ndf/urls/__init__.py2
3 files changed, 4 insertions, 2 deletions
diff --git a/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/discussion.html b/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/discussion.html
index 22b222d..e23dbf7 100644
--- a/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/discussion.html
+++ b/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/discussion.html
@@ -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){
diff --git a/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/node_ajax_view.html b/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/node_ajax_view.html
index a130ed3..d323fc3 100644
--- a/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/node_ajax_view.html
+++ b/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/node_ajax_view.html
@@ -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-->
diff --git a/gnowsys-ndf/gnowsys_ndf/ndf/urls/__init__.py b/gnowsys-ndf/gnowsys_ndf/ndf/urls/__init__.py
index e822a32..2e0ef30 100644
--- a/gnowsys-ndf/gnowsys_ndf/ndf/urls/__init__.py
+++ b/gnowsys-ndf/gnowsys_ndf/ndf/urls/__init__.py
@@ -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