Fix broken submission in firefox

- apparently have to define functions before using them...
This commit is contained in:
Victor Shnayder
2012-09-21 18:35:00 -04:00
parent 0a4a523e44
commit ae06f13b96

View File

@@ -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;
}
}
});
</script>