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