Show editor for code commenting, and allow commenting as well
This commit is contained in:
@@ -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')
|
||||
})
|
||||
|
4
app/assets/stylesheets/request-for-comments.css.scss
Normal file
4
app/assets/stylesheets/request-for-comments.css.scss
Normal file
@@ -0,0 +1,4 @@
|
||||
#commentitor {
|
||||
margin-top: 2rem;
|
||||
height: 600px;
|
||||
}
|
Reference in New Issue
Block a user