From ae06f13b9601cdbf3e922bef249fdf92abb474cd Mon Sep 17 00:00:00 2001 From: Victor Shnayder Date: Fri, 21 Sep 2012 18:35:00 -0400 Subject: [PATCH] Fix broken submission in firefox - apparently have to define functions before using them... --- lms/templates/problem.html | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lms/templates/problem.html b/lms/templates/problem.html index c0bb4ef3e4..c2e35bc3e4 100644 --- a/lms/templates/problem.html +++ b/lms/templates/problem.html @@ -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; - } } });