changeset 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 560206522815
children a7a772ea7b95
files rhodecode/templates/files/files_source.html
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
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');