From d56290f2d85ad546a20da8f6e8b02dadea95055a Mon Sep 17 00:00:00 2001 From: Maximilian Grundke Date: Wed, 27 Apr 2016 18:02:50 +0200 Subject: [PATCH] Remove constraints for click event --- app/views/request_for_comments/show.html.erb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/views/request_for_comments/show.html.erb b/app/views/request_for_comments/show.html.erb index 0688820d..aa4fcec0 100644 --- a/app/views/request_for_comments/show.html.erb +++ b/app/views/request_for_comments/show.html.erb @@ -112,8 +112,9 @@ do not put a carriage return in the line below. it will be present in the presen var editor = e.editor; if (target.className.indexOf("ace_gutter-cell") == -1) return; - if (!editor.isFocused()) return; - if (e.clientX > 25 + target.getBoundingClientRect().left) return; + //if (!editor.isFocused()) return; + //if (e.clientX > 25 + target.getBoundingClientRect().left) return; + var row = e.getDocumentPosition().row; e.stop();