Skip to content

Commit

Permalink
added quotes to assets.js
Browse files Browse the repository at this point in the history
There were a few missing quotes that were causing javascript errors. I've added them in and the errors are fixed.
  • Loading branch information
greatwitenorth committed Jul 26, 2013
1 parent e458360 commit afecd9d
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 afecd9d

Please sign in to comment.