# HG changeset patch # User Mads Kiilerich # Date 1453250831 -3600 # Node ID 1ecfb8ecc634101b63c150beda7473556f05d662 # Parent 054c6d98454bb81ef6d49a3a316bd3372a7cdb30 comments: drop delayed activation of new comments It is unclear what it fixed and we have tested this and haven't heard any complaints. diff -r 054c6d98454b -r 1ecfb8ecc634 kallithea/public/js/base.js --- 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); + } }