summaryrefslogtreecommitdiffstats
path: root/web_src/js/features/repo-code.js
diff options
context:
space:
mode:
Diffstat (limited to 'web_src/js/features/repo-code.js')
-rw-r--r--web_src/js/features/repo-code.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web_src/js/features/repo-code.js b/web_src/js/features/repo-code.js
index 82ab902ce1..a4b6e433a5 100644
--- a/web_src/js/features/repo-code.js
+++ b/web_src/js/features/repo-code.js
@@ -36,8 +36,8 @@ function selectRange($list, $select, $from) {
};
if ($from) {
- let a = parseInt($select.attr('rel').substr(1));
- let b = parseInt($from.attr('rel').substr(1));
+ let a = parseInt($select.attr('rel').slice(1));
+ let b = parseInt($from.attr('rel').slice(1));
let c;
if (a !== b) {
if (a > b) {