##// 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 375 if (location.hash) {
376 376 var result = splitDelimitedHash(location.hash);
377 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 383 // browse tree @ revision
@@ -177,7 +177,9 b''
177 177 var _first_line = $('#L' + h_lines[0]).get(0);
178 178 if (_first_line) {
179 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 415 if (location.hash) {
416 416 var result = splitDelimitedHash(location.hash);
417 417 var line = $('html').find(result.loc);
418 offsetScroll(line, 70);
418 if (line.length > 0){
419 offsetScroll(line, 70);
420 }
419 421 }
420 422 $(function(){
421 423 ReviewerAutoComplete('user');
General Comments 0
You need to be logged in to leave comments. Login now