From 1dab25b6369d324f3c7ec0b0e1c68095a793ae39 Mon Sep 17 00:00:00 2001 From: Ralf Teusner Date: Mon, 31 Aug 2015 19:43:16 +0200 Subject: [PATCH] fixed broken merge... --- app/assets/javascripts/editor.js | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/app/assets/javascripts/editor.js b/app/assets/javascripts/editor.js index 7e8c82ff..e2598eb7 100644 --- a/app/assets/javascripts/editor.js +++ b/app/assets/javascripts/editor.js @@ -414,21 +414,6 @@ $(function() { session.on('annotationRemoval', handleAnnotationRemoval); session.on('annotationChange', handleAnnotationChange); - // TODO refactor here, put this in its own function - // Code for clicks on gutter / sidepanel - editor.on("guttermousedown", function(e){ - var target = e.domEvent.target; - - // only allow comments on submissions, not on the template - if(active_frame.data('context-type') != 'Submission') return; - //if ($(editor.container).data('context-type') != 'Submission') return; - if (target.className.indexOf("ace_gutter-cell") == -1) return; - if (!editor.isFocused()) return; - if (e.clientX > 25 + target.getBoundingClientRect().left) return; - - var row = e.getDocumentPosition().row; - e.stop(); - /* * Register event handlers */