remove broken refactoring
This commit is contained in:
@ -286,19 +286,15 @@ $(function() {
|
||||
session.setUseSoftTabs(true);
|
||||
session.setUseWrapMode(true);
|
||||
|
||||
setAnnotations(editor, $(element).data('file-id'))
|
||||
var file_id = $(element).data('file-id');
|
||||
setAnnotations(editor, file_id);
|
||||
|
||||
session.on('annotationRemoval', handleAnnotationRemoval)
|
||||
session.on('annotationChange', handleAnnotationChange)
|
||||
|
||||
// TODO refactor here
|
||||
// Code for clicks on gutter / sidepanel
|
||||
editor.on("guttermousedown", handleGutterClick);
|
||||
})
|
||||
}
|
||||
|
||||
var handleGutterClick = function(e){
|
||||
var file_id = $(element).data('file-id');
|
||||
editor.on("guttermousedown", function(e){
|
||||
var target = e.domEvent.target;
|
||||
|
||||
if (target.className.indexOf("ace_gutter-cell") == -1) return;
|
||||
@ -338,9 +334,11 @@ $(function() {
|
||||
})
|
||||
|
||||
commentModal.modal('show')
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
var hasCommentsInRow = function (editor, row) {
|
||||
var hasCommentsInRow = function (editor, row){
|
||||
return editor.getSession().getAnnotations().some(function(element) {
|
||||
return element.row === row
|
||||
})
|
||||
|
Reference in New Issue
Block a user