diff --git a/templates/HTML/SingleProblemGrader/grader.html.ep b/templates/HTML/SingleProblemGrader/grader.html.ep index e8f51ab399..295d1a708d 100644 --- a/templates/HTML/SingleProblemGrader/grader.html.ep +++ b/templates/HTML/SingleProblemGrader/grader.html.ep @@ -1,8 +1,11 @@ % use WeBWorK::Utils 'wwRound'; % -% content_for js => begin - <%= javascript getAssetURL($ce, 'js/ProblemGrader/singleproblemgrader.js'), defer => undef =%> -% end +% if (!stash->{jsInserted}) { + % stash->{jsInserted} = 1; + % content_for js => begin + <%= javascript getAssetURL($ce, 'js/ProblemGrader/singleproblemgrader.js'), defer => undef =%> + % end +% } %