Commit a755ffeb authored by saurabh's avatar saurabh

redirect url after deletion is changed for page

parent 1ac209fd
......@@ -499,8 +499,8 @@
csrfmiddlewaretoken: '{{ csrf_token }}'
},
success: function(data) {
data = JSON.parse(data)
window.location.replace("{% url 'file' group_id %}");
redirect_url ="/"+"{{group_id}}"+"/"+"{{node.member_of_names_list.0|lower}}"
window.location.replace(redirect_url);
}
});
......@@ -514,7 +514,6 @@
csrfmiddlewaretoken: '{{ csrf_token }}'
},
success: function(data) {
data = JSON.parse(data)
window.location.replace("{% url 'file' group_id %}");
}
......
......@@ -55,7 +55,7 @@ def trash_resource(request,group_id,node_id):
return HttpResponseRedirect(reverse('page', kwargs={'group_id': group_id}))
# return (eval('page')(request, group_id))
elif "File" in node_obj.member_of_names_list and not "CourseEventGroup" in group_obj.member_of_names_list :
return HttpResponse(json.dumps(group_id))
return HttpResponse(json.dumps(group_id)
# elif get_member_of.name == 'File':
# return(eval('file')(request, group_id))
elif "CourseEventGroup" in group_obj.member_of_names_list:
......
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