Skip to content

Commit

Permalink
Additional hidden child toggle fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Phillips committed Nov 3, 2022
1 parent a7c78b9 commit 3b44b01
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions assets/js/lib/nestedpages.formatter.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ NestedPages.Formatter = function()

var open = ( $(row).children('ol:visible').length > 0 ) ? true : false;

if ( $(row).children('ol').find('.page-row').not('.np-hide').length > 0 ) {
open = true;
}

var html = '<div class="child-toggle-spacer"></div>';
html += '<a href="#"';
if ( open ) html += ' class="open"';
Expand Down
2 changes: 1 addition & 1 deletion assets/js/nestedpages.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/js/nestedpages.min.js

Large diffs are not rendered by default.

0 comments on commit 3b44b01

Please sign in to comment.