Skip to content

Commit

Permalink
Enable jquery UI in html-ui questions (might be needed).
Browse files Browse the repository at this point in the history
  • Loading branch information
trampgeek committed Dec 2, 2024
1 parent 2451a85 commit f50646a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions classes/util.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ public static function load_uiplugin_js($question, $textareaid) {
self::load_ace();
}
$PAGE->requires->js_call_amd('qtype_coderunner/userinterfacewrapper', 'newUiWrapper', $params);
if ($uiplugin === 'html') {
$PAGE->requires->jquery_plugin('ui'); // Possibly needed by Parson's Problems.
}
}
}

Expand Down

0 comments on commit f50646a

Please sign in to comment.