Commit e08124c3 by Tom Giannattasio

fixed collapsible after check bug

parent 36018941
...@@ -42,6 +42,7 @@ ...@@ -42,6 +42,7 @@
$('.shortform').append('<a href="#" class="full">See full output</a>'); $('.shortform').append('<a href="#" class="full">See full output</a>');
$('.collapsible section').hide(); $('.collapsible section').hide();
$('.full').click(function() { $('.full').click(function() {
$(this).parent().siblings().slideToggle(); $(this).parent().siblings().slideToggle();
$(this).parent().parent().toggleClass('open'); $(this).parent().parent().toggleClass('open');
...@@ -51,6 +52,7 @@ ...@@ -51,6 +52,7 @@
}); });
function toggleHint(e) { function toggleHint(e) {
e.preventDefault();
$(this).parent().siblings().slideToggle(); $(this).parent().siblings().slideToggle();
$(this).parent().parent().toggleClass('open'); $(this).parent().parent().toggleClass('open');
return false; return false;
...@@ -58,8 +60,8 @@ ...@@ -58,8 +60,8 @@
if(!collapsibleSet) { if(!collapsibleSet) {
collapsibleSet = true; collapsibleSet = true;
$('.collapsible header a').bind('click', toggleHint); $('body').delegate('.collapsible header a', 'click', toggleHint);
} }
}); });
</script> </script>
</%block> </%block>
\ 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