Skip to content
This repository was archived by the owner on Nov 10, 2020. It is now read-only.

Commit b7975dc

Browse files
committed
Fix hidden 'show all' links.
1 parent ce28a59 commit b7975dc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

_assets/js/swift-site.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,12 @@ $(function() {
5454
if (inheritedSubcount == 0) return;
5555

5656
var noun = inheritedSubcount == 1 ? ' inherited item hidden' : ' inherited items hidden';
57-
subitems.last().after('<p class="noninherited">' + inheritedSubcount + noun + '.</p>');
57+
var link = '(<a href="#" onclick="$(\'#toggleInherited\').click(); return false;">Show all</a>)';
58+
subitems.last().after('<p class="noninherited">' + inheritedSubcount + noun + '. ' + link + '</p>');
5859
}
5960

6061
$('.content h3').each(addHiddenNote);
61-
$('#default-implementations').nextAll('h4').each(addHiddenNote);
62+
$('#conditionally-inheriteditems').nextAll('h4').each(addHiddenNote);
6263
$('#aliasesmark').each(addHiddenNote);
6364

6465
// display setting cookies

0 commit comments

Comments
 (0)