Commit cea4e347 by Tom Giannattasio

remove collapsible from problem template

parent 302d5b48
......@@ -30,36 +30,4 @@
</section>
% endif
</section>
</section>
<%block name="js_extra">
<script type="text/javascript" charset="utf-8">
var collapsibleSet;
$(function(){
// this should be brought back into problems
$('.longform').hide();
$('.shortform').append('<a href="#" class="full">See full output</a>');
$('.full').click(function() {
$(this).parent().siblings().slideToggle();
$(this).parent().parent().toggleClass('open');
var text = $(this).text() == 'See full output' ? 'Hide output' : 'See full output';
$(this).text(text);
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);
}
});
</script>
</%block>
</section>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment