This website works better with JavaScript.
Home
Help
Sign In
ben
/
bitshift
mirror of
https://github.com/earwig/bitshift
Watch
1
Star
1
Fork
0
Code
Releases
1
Activity
Browse Source
Prevent page from scrolling to top when next match is clicked.
tags/v1.0^2
Benjamin Attal
10 years ago
parent
0f23aa06ff
commit
4cc903fb75
1 changed files
with
1 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
static/js/index.js
+ 1
- 0
static/js/index.js
View File
@@ -231,6 +231,7 @@ function createResult(codelet) {
$(nextMatch).click(function(e) {
e.stopPropagation()
e.preventDefault()
cur_match = cur_match >= matches.length - 1 ? 0 : cur_match + 1;
newMatch();
});
Write
Preview
Loading…
Cancel
Save