Mercurial > kallithea
changeset 2441:bb8f97bee137 codereview
merge with beta
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 10 Jun 2012 18:22:45 +0200 |
parents | 1bc579bcd67a (current diff) 81c29d269aed (diff) |
children | 3bf057a7f7e8 |
files | rhodecode/public/js/rhodecode.js |
diffstat | 1 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/public/js/rhodecode.js Sun Jun 10 18:15:00 2012 +0200 +++ b/rhodecode/public/js/rhodecode.js Sun Jun 10 18:22:45 2012 +0200 @@ -418,7 +418,6 @@ } YUD.insertAfter(form,parent); - YUD.get('text_'+lineno).focus(); var f = YUD.get(form); var overlay = f.getElementsByClassName('overlay')[0]; @@ -465,8 +464,14 @@ ajaxPOST(submit_url, postData, success); }); - // callbacks - tooltip_activate(); + + setTimeout(function(){ + // callbacks + tooltip_activate(); + MentionsAutoComplete('text_'+lineno, 'mentions_container_'+lineno, + _USERS_AC_DATA, _GROUPS_AC_DATA); + YUD.get('text_'+lineno).focus(); + },10) }; var deleteComment = function(comment_id){