alexrudnick / iucs-guido

Automatically exported from code.google.com/p/iucs-guido
0 stars 0 forks source link

CommentSolution Edit/Delete Interface #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
0. start grading
1. input a comment
2. hit submit
3. can't see the comment, can't edit/delete it

The user would like to be able to see where there are comments. In the db, we 
record the selected text when the comment was entered. Maybe we should 
highlight the text that has been commented on. If you click on that text, a 
little jquery box with the text and edit/delete buttons hovers to the right. 

Original issue reported on code.google.com by krmckelv on 22 Sep 2011 at 5:20

GoogleCodeExporter commented 9 years ago
We want to use the qtip library for this. It is now available in the source. I 
can imagine using some javascript to add a highlighted class around the text 
that relates to a comment and then using qtip on that specific class with the 
content of the comment & the comment id (to allow for deleting).

Original comment by krmckelv on 23 Sep 2011 at 5:35

GoogleCodeExporter commented 9 years ago
Now that we record the linenumber, this should be easy. For each linenumber 
that has had a previous comment, add a class to that anchor (the linenumbers 
are now links) and also make a qtip tooltip on it to view the comment.

We already run though each linenumber in views/studentcode

Original comment by krmckelv on 25 Sep 2011 at 5:00

GoogleCodeExporter commented 9 years ago
You can now see the comment, and see a delete button for each comment, but 
deletion doesn't work yet.

Original comment by krmckelv on 25 Sep 2011 at 6:06

GoogleCodeExporter commented 9 years ago
The deletion now works. yay

Original comment by krmckelv on 27 Sep 2011 at 4:17