##// END OF EJS Templates
js: offsetScroll to elements that are found
ergo -
r794:6ce205ff default
parent child Browse files
Show More
@@ -375,7 +375,9 b''
375 if (location.hash) {
375 if (location.hash) {
376 var result = splitDelimitedHash(location.hash);
376 var result = splitDelimitedHash(location.hash);
377 var line = $('html').find(result.loc);
377 var line = $('html').find(result.loc);
378 offsetScroll(line, 70);
378 if (line.length > 0){
379 offsetScroll(line, 70);
380 }
379 }
381 }
380
382
381 // browse tree @ revision
383 // browse tree @ revision
@@ -177,7 +177,9 b''
177 var _first_line = $('#L' + h_lines[0]).get(0);
177 var _first_line = $('#L' + h_lines[0]).get(0);
178 if (_first_line) {
178 if (_first_line) {
179 var line = $('#L' + h_lines[0]);
179 var line = $('#L' + h_lines[0]);
180 offsetScroll(line, 70);
180 if (line.length > 0){
181 offsetScroll(line, 70);
182 }
181 }
183 }
182 }
184 }
183 }
185 }
@@ -415,7 +415,9 b''
415 if (location.hash) {
415 if (location.hash) {
416 var result = splitDelimitedHash(location.hash);
416 var result = splitDelimitedHash(location.hash);
417 var line = $('html').find(result.loc);
417 var line = $('html').find(result.loc);
418 offsetScroll(line, 70);
418 if (line.length > 0){
419 offsetScroll(line, 70);
420 }
419 }
421 }
420 $(function(){
422 $(function(){
421 ReviewerAutoComplete('user');
423 ReviewerAutoComplete('user');
General Comments 0
You need to be logged in to leave comments. Login now