comparison 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
comparison
equal deleted inserted replaced
1321:560206522815 1322:8cca07df79dd
130 t_int = parseInt(till.id.replace('L','')); 130 t_int = parseInt(till.id.replace('L',''));
131 131
132 if (f_int > t_int){ 132 if (f_int > t_int){
133 //highlight from bottom 133 //highlight from bottom
134 offset = -35; 134 offset = -35;
135 ranges = [t_int,f_int];
136
135 } 137 }
136 else{ 138 else{
137 //highligth from top 139 //highligth from top
138 offset = 35; 140 offset = 35;
141 ranges = [f_int,t_int];
139 } 142 }
140
141 ranges = [f_int,t_int].sort();
142 143
143 if (ranges[0] != ranges[1]){ 144 if (ranges[0] != ranges[1]){
144 if(YUD.get('linktt') == null){ 145 if(YUD.get('linktt') == null){
145 hl_div = document.createElement('div'); 146 hl_div = document.createElement('div');
146 hl_div.id = 'linktt'; 147 hl_div.id = 'linktt';