changeset 5670:1ecfb8ecc634

comments: drop delayed activation of new comments It is unclear what it fixed and we have tested this and haven't heard any complaints.
author Mads Kiilerich <madski@unity3d.com>
date Wed, 20 Jan 2016 01:47:11 +0100
parents 054c6d98454b
children 779d43be59c6
files kallithea/public/js/base.js
diffstat 1 files changed, 4 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/public/js/base.js	Wed Jan 20 01:47:11 2016 +0100
+++ b/kallithea/public/js/base.js	Wed Jan 20 01:47:11 2016 +0100
@@ -733,12 +733,11 @@
         comment_div_state($comment_div, f_path, line_no);
     });
 
-    setTimeout(function() {
-        // callbacks
-        tooltip_activate();
-        MentionsAutoComplete($textarea, $mentions_container, _USERS_AC_DATA);
+    tooltip_activate();
+    MentionsAutoComplete($textarea, $mentions_container, _USERS_AC_DATA);
+    if (f_path) {
         $textarea.focus();
-    }, 10);
+    }
 }