diff --git a/lms/templates/problem.html b/lms/templates/problem.html index c0bb4ef3e4..c2e35bc3e4 100644 --- a/lms/templates/problem.html +++ b/lms/templates/problem.html @@ -49,15 +49,16 @@ return false; }); + function toggleHint(e) { + $(this).parent().siblings().slideToggle(); + $(this).parent().parent().toggleClass('open'); + return false; + } + if(!collapsibleSet) { collapsibleSet = true; $('.collapsible section').hide(); $('.collapsible header a').bind('click', toggleHint); - function toggleHint(e) { - $(this).parent().siblings().slideToggle(); - $(this).parent().parent().toggleClass('open'); - return false; - } } });