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