summaryrefslogtreecommitdiffstats
path: root/public/js/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/js/index.js')
-rw-r--r--public/js/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/public/js/index.js b/public/js/index.js
index cbfca147a7..5810647296 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -1602,9 +1602,9 @@ function initCodeView() {
$("html, body").scrollTop($first.offset().top - 200);
return;
}
- m = window.location.hash.match(/^#(L\d+)$/);
+ m = window.location.hash.match(/^#(L|n)(\d+)$/);
if (m) {
- $first = $list.filter('.' + m[1]);
+ $first = $list.filter('.L' + m[2]);
selectRange($list, $first);
$("html, body").scrollTop($first.offset().top - 200);
}