fixed large collapsible text and triple toggle

This commit is contained in:
Tom Giannattasio
2012-09-20 17:49:36 -04:00
parent 99a009abdf
commit 4af134b28a
2 changed files with 20 additions and 6 deletions

View File

@@ -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);

View File

@@ -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() {
$(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;
}
}
});
</script>
</%block>