Skip to content

Commit

Permalink
Merge pull request hunvreus#11 from greatwitenorth/patch-1
Browse files Browse the repository at this point in the history
Added quotes to assets.js
  • Loading branch information
Ronan Berder committed Aug 12, 2013
2 parents e458360 + afecd9d commit 04b34bb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions assets.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@


/**
* hasOwnProperty.
*/
Expand Down Expand Up @@ -9679,7 +9678,7 @@ $('article').each(function () {
});

var anchor = window.location.hash.substring(1);
if (anchor) $('article a[name=' + anchor + ']').trigger('click');
if (anchor) $('article a[name="' + anchor + '"]').trigger('click');

// Expanding the article on link click and scrolling down to it
$('#sidebar a').each(function () {
Expand All @@ -9692,8 +9691,8 @@ $('#sidebar a').each(function () {
});

// If we find a link in the body with similar anchor, add the same behavior
$('.body a[href=#'+ id +']').click(function (e) {
$('#sidebar a[href=#'+ id +']').trigger('click');
$('.body a[href="#'+ id +'"]').click(function (e) {
$('#sidebar a[href="#'+ id +'"]').trigger('click');
});
});

Expand Down

0 comments on commit 04b34bb

Please sign in to comment.