Commit 4af134b2 by Tom Giannattasio

fixed large collapsible text and triple toggle

parent 99a009ab
......@@ -52,6 +52,14 @@ div.course-wrapper {
margin-bottom: 15px;
padding: 0 0 15px;
.collapsible {
header {
margin-bottom: 0;
padding-bottom: 0;
font-size: 16px;
}
}
header {
@extend h1.top-header;
@include border-radius(0 4px 0 0);
......
......@@ -34,6 +34,8 @@
<%block name="js_extra">
<script type="text/javascript" charset="utf-8">
var collapsibleSet;
$(function(){
// this should be brought back into problems
$('.longform').hide();
......@@ -47,12 +49,16 @@
return false;
});
$('.collapsible section').hide()
$('.collapsible header a').click(function() {
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
});
return false;
}
}
});
</script>
</%block>
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