diff --git a/classes/turnitin_view.class.php b/classes/turnitin_view.class.php index 23cfe114..07d304a9 100644 --- a/classes/turnitin_view.class.php +++ b/classes/turnitin_view.class.php @@ -137,6 +137,7 @@ public function add_elements_to_settings_form($mform, $course, $location = "acti // Add in custom Javascript and CSS. $PAGE->requires->jquery_plugin('ui'); + $PAGE->requires->js_call_amd('plagiarism_turnitin/refresh_submissions', 'refreshSubmissions'); if ($CFG->version >= 2023100900) { $PAGE->requires->js_call_amd('plagiarism_turnitin/newPeermarkLaunch', 'newPeermarkLaunch'); $PAGE->requires->js_call_amd('plagiarism_turnitin/newQuickmarkLaunch', 'newQuickmarkLaunch'); @@ -145,7 +146,6 @@ public function add_elements_to_settings_form($mform, $course, $location = "acti $PAGE->requires->js_call_amd('plagiarism_turnitin/peermarkLaunch', 'peermarkLaunch'); $PAGE->requires->js_call_amd('plagiarism_turnitin/quickmarkLaunch', 'quickmarkLaunch'); $PAGE->requires->js_call_amd('plagiarism_turnitin/rubric', 'rubric'); - $PAGE->requires->js_call_amd('plagiarism_turnitin/refresh_submissions', 'refreshSubmissions'); } // Refresh Grades. $refreshgrades = ''; diff --git a/lib.php b/lib.php index e0ccd8e6..dccfdee5 100755 --- a/lib.php +++ b/lib.php @@ -586,7 +586,7 @@ public function load_page_components() { } else { $PAGE->requires->js_call_amd('plagiarism_turnitin/eulaLaunch', 'eulaLaunch'); - $PAGE->requires->js_call_amd('plagiarism_turnitin/peermark', 'peermarkLaunch'); + $PAGE->requires->js_call_amd('plagiarism_turnitin/peermarkLaunch', 'peermarkLaunch'); $PAGE->requires->js_call_amd('plagiarism_turnitin/rubric', 'rubric'); }