Skip to content

Commit

Permalink
don't block meta-click on source lines
Browse files Browse the repository at this point in the history
  • Loading branch information
haarg committed Oct 7, 2015
1 parent 5e33a86 commit bfe43ba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions root/static/js/syntaxhighlighter.js
Expand Up @@ -211,6 +211,9 @@ $(function () {
line.contents().wrap('<a href="#'+id+'" id="'+id+'"></a>');
var link = line.children('a');
link.click(function(e) {
if (e.metaKey) {
return false;
}
// normally the browser would update the url and scroll to
// the the link. instead, update the hash ourselves, but
// unset the id first so it doesn't scroll
Expand Down

0 comments on commit bfe43ba

Please sign in to comment.