Mercurial > kallithea
changeset 3451:151a83be8ad5 beta
scrool into multi line selection in file view
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Mon, 04 Mar 2013 16:15:34 +0100 |
parents | eda34a21796e |
children | d778ed1c945f 53eafc983b5c |
files | rhodecode/templates/files/files_source.html |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/templates/files/files_source.html Mon Mar 04 14:49:46 2013 +0100 +++ b/rhodecode/templates/files/files_source.html Mon Mar 04 16:15:34 2013 +0100 @@ -86,8 +86,11 @@ h_lines.push(parseInt(highlight_ranges[pos])); } } - highlight_lines(h_lines); - + highlight_lines(h_lines); + var _first_line= YUD.get('L'+h_lines[0]); + if(_first_line){ + _first_line.scrollIntoView() + } } // select code link event