remove broken refactoring

This commit is contained in:
Felix Wolff
2015-03-27 15:12:19 +01:00
parent ca63415533
commit de154a6f66

View File

@ -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
})