Skip to content

Commit

Permalink
Fixed code switching
Browse files Browse the repository at this point in the history
  • Loading branch information
mpociot committed May 11, 2016
1 parent 8ae3a61 commit f39242f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions resources/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
$(".lang-selector a").removeClass('active');
$(".lang-selector a[data-language-name='" + language + "']").addClass('active');
for (var i=0; i < languages.length; i++) {
$(".highlight." + languages[i]).parent().hide();
$("code.language-" + languages[i]).parent().hide();
}
$(".highlight." + language).parent().show();
$("code.language-" + language).parent().show();

global.toc.calculateHeights();

Expand Down
Loading

0 comments on commit f39242f

Please sign in to comment.