Skip to content

Commit 6294328

Browse files
committed
Fix incompatibility with older python-grader-utils (collapses not opening)
1 parent def09c1 commit 6294328

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

assets/js/aplus.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,14 @@ $(function () {
590590
this.content.html(data.content);
591591
}
592592
this.content.show();
593+
594+
// Fix for older python-grader-utils versions without Bootstrap5 update
595+
$('[data-toggle]').each(function() {
596+
const value = $(this).attr('data-toggle');
597+
$(this).attr('data-bs-toggle', value);
598+
$(this).removeAttr('data-toggle');
599+
});
600+
593601
return this.content;
594602
}
595603
});

0 commit comments

Comments
 (0)