Skip to content

Commit

Permalink
Merge pull request openwebwork#2590 from drgrice1/bugfix/problem-grad…
Browse files Browse the repository at this point in the history
…er-multiple-saves

Fix multiple loading of javscript for the single problem grader.
  • Loading branch information
Alex-Jordan authored Oct 2, 2024
2 parents dca2fa7 + cf532b4 commit 137ed73
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions templates/HTML/SingleProblemGrader/grader.html.ep
Original file line number Diff line number Diff line change
@@ -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
% }
%
<div class="problem-grader">
<hr>
Expand Down

0 comments on commit 137ed73

Please sign in to comment.