Commit 4f1af118 authored by Kedar Aitawdekar's avatar Kedar Aitawdekar 💻

Merge branch 'master' of http://github.com/gnowledge/gstudio

parents cb279431 875b6979
......@@ -186,10 +186,10 @@
$.ajax({
url: "{% url 'get_topic_contents' groupid %}",
type: 'POST',
// type: 'POST',
data:{
node_id: topic_id,
csrfmiddlewaretoken: '{{ csrf_token }}'
// csrfmiddlewaretoken: '{{ csrf_token }}'
},
success: function(data){
......
......@@ -701,15 +701,15 @@ def search_drawer(request, group_id):
@get_execution_time
def get_topic_contents(request, group_id):
if request.is_ajax() and request.method == "POST":
node_id = request.POST.get("node_id", '')
selected = request.POST.get("selected", '')
choice = request.POST.get("choice", '')
# node = node_collection.one({'_id': ObjectId(node_id) })
# if request.is_ajax() and request.method == "POST":
node_id = request.GET.get("node_id", '')
selected = request.GET.get("selected", '')
choice = request.GET.get("choice", '')
# node = node_collection.one({'_id': ObjectId(node_id) })
contents = get_contents(node_id, selected, choice)
contents = get_contents(node_id, selected, choice)
return HttpResponse(json.dumps(contents))
return HttpResponse(json.dumps(contents))
####Bellow part is for manipulating theme topic hierarchy####
......
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