Skip to content

Commit

Permalink
Merge pull request #2592 from drgrice1/bugfix/problem-grader-multiple…
Browse files Browse the repository at this point in the history
…-saves-hotfix

Fix multiple loading of javscript for the single problem grader. (hotfix of #2590)
  • Loading branch information
Alex-Jordan authored Oct 2, 2024
2 parents 095521d + e167ee3 commit 2bf8a30
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 2bf8a30

Please sign in to comment.