Show editor for code commenting, and allow commenting as well

This commit is contained in:
Felix Wolff
2015-03-28 18:39:55 +01:00
parent 8149f207fd
commit d601878452
3 changed files with 87 additions and 4 deletions

View File

@ -344,7 +344,7 @@ $(function() {
commentModal.find('#removeAllButton').off('click')
commentModal.find('#addCommentButton').on('click', function(e){
var user_id = element.data('user-id')
var user_id = $(element).data('user-id')
var commenttext = commentModal.find('textarea').val()
if (commenttext !== "") {
@ -354,7 +354,7 @@ $(function() {
})
commentModal.find('#removeAllButton').on('click', function(e){
var user_id = element.data('user-id')
var user_id = $(element).data('user-id')
deleteComment(user_id,file_id,row,editor);
commentModal.modal('hide')
})