Skip to content

Commit

Permalink
Fix menu always hidden
Browse files Browse the repository at this point in the history
The first argument to .filter is the index
  • Loading branch information
UziTech authored and jaapio committed Oct 15, 2017
1 parent e4ed82b commit 4c13b1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/templates/responsive/js/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ $(document).ready(function() {
}

// Hide API Documentation menu if it's empty
$('.nav .dropdown a[href=#api]').next().filter(function(el) {
$('.nav .dropdown a[href=#api]').next().filter(function(i, el) {
if ($(el).children().length == 0) {
return true;
}
Expand Down

0 comments on commit 4c13b1d

Please sign in to comment.