# HG changeset patch # User Marcin Kuzminski # Date 2011-05-08 20:11:26 # Node ID 8cca07df79dd0a0082bb6188a26b8c6edfcb8173 # Parent 56020652281525646e4c5c00d26c0cb2a6c7b98d fixed small bug in selection links when sorting messes up for <10 numbers diff --git a/rhodecode/templates/files/files_source.html b/rhodecode/templates/files/files_source.html --- a/rhodecode/templates/files/files_source.html +++ b/rhodecode/templates/files/files_source.html @@ -132,14 +132,15 @@ YUE.onDOMReady(function(){ 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');