Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Commit

Permalink
skip fragmentation with hashes (bug 740947)
Browse files Browse the repository at this point in the history
  • Loading branch information
cvan committed Apr 12, 2012
1 parent d6438f6 commit a2b49a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion media/js/mkt/fragments.js
Expand Up @@ -9,7 +9,8 @@
page.on('click', 'a', function(e) {
var href = this.getAttribute('href');
if (e.metaKey || e.ctrlKey || e.button !== 0) return;
if (!href || href.substr(0,4) == 'http' || href === '#' ||
if (!href || href.substr(0,4) == 'http' ||
href.substr(0,1) === '#' ||
href.indexOf('/developers/') !== -1 ||
href.indexOf('/statistics/') !== -1) {
return;
Expand Down

1 comment on commit a2b49a5

@robhudson
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job hashing this one out.

Please sign in to comment.