bugfixes, policies, errors now have a link to the submissions

This commit is contained in:
Ralf Teusner
2015-04-10 20:23:38 +02:00
parent 4fe60d5f94
commit 172ca91329
14 changed files with 241 additions and 16 deletions

View File

@@ -29,6 +29,7 @@
var lineInput = $('#lineInput');
var commentInput = $('#commentInput');
commentitor = ace.edit(commentitor[0]);
commentitor.setReadOnly(true);
$('#submitComment').click(addComment);
setAnnotations();
@@ -48,7 +49,7 @@
jqrequest.done(function(response){
$.each(response, function(index, comment) {
comment.className = "code-ocean_comment"
comment.text = comment.user_id + ": " + comment.text
comment.text = comment.username + ": " + comment.text
})
commentitor.getSession().setAnnotations(response)