# HG changeset patch # User Marcin Kuzminski # Date 2012-12-20 19:05:54 # Node ID 6659c5af04e7d2ee6ccabfdd5acb17dc94c21243 # Parent 324ed41c11b1c76afb03e93fc123f6209d81d1ef fixed issue with padding fix breaks history on firefox 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 @@ -86,15 +86,6 @@ YUE.onDOMReady(function(){ } highlight_lines(h_lines); - //remember original location - var old_hash = location.href.substring(location.href.indexOf('#')); - - // this makes a jump to anchor moved by 3 posstions for padding - window.location.hash = '#L'+Math.max(parseInt(h_lines[0])-3,1); - - //sets old anchor - window.location.hash = old_hash; - } // select code link event