Mercurial > kallithea
diff rhodecode/templates/files/files_source.html @ 1322:8cca07df79dd beta
fixed small bug in selection links when sorting messes up for <10 numbers
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 08 May 2011 20:11:26 +0200 |
parents | 09c3fb460fcb |
children | aaec08ad9daf |
line wrap: on
line diff
--- a/rhodecode/templates/files/files_source.html Sun May 08 20:04:35 2011 +0200 +++ b/rhodecode/templates/files/files_source.html Sun May 08 20:11:26 2011 +0200 @@ -132,14 +132,15 @@ if (f_int > t_int){ //highlight from bottom offset = -35; + ranges = [t_int,f_int]; + } else{ //highligth from top offset = 35; + ranges = [f_int,t_int]; } - ranges = [f_int,t_int].sort(); - if (ranges[0] != ranges[1]){ if(YUD.get('linktt') == null){ hl_div = document.createElement('div');