Chapters fading when all its challenges are completed

Also, removing the decoration after click.
This commit is contained in:
Hallaathrad
2016-02-01 12:02:20 -05:00
parent b33e93eac2
commit 340c35fe6a
2 changed files with 24 additions and 16 deletions

View File

@@ -312,7 +312,7 @@ $(document).ready(function() {
if ($(div).find('.manip-hidden').length ===
$(div).find('p').length) {
collapseBlock(div);
$(div).find('h3 > a').addClass('faded');
$(div).prev('h3').addClass('faded');
$(div).prev('h2').addClass('faded');
}
});