From 6f3d26db067b0d523e9203744b069f22a3169433 Mon Sep 17 00:00:00 2001 From: Maximilian Grundke Date: Sat, 7 May 2016 15:01:34 +0200 Subject: [PATCH] Fix click event for compatibility (for example with Firefox) --- app/views/request_for_comments/show.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/request_for_comments/show.html.erb b/app/views/request_for_comments/show.html.erb index 5564d187..ab53ebd0 100644 --- a/app/views/request_for_comments/show.html.erb +++ b/app/views/request_for_comments/show.html.erb @@ -115,7 +115,7 @@ do not put a carriage return in the line below. it will be present in the presen } function handleSidebarClick(e) { - var target = e.domEvent.toElement; + var target = e.domEvent.target; var editor = e.editor; if (target.className.indexOf("ace_gutter-cell") == -1) return;