Skip to content

Commit

Permalink
Update call to peermark launcher (#698)
Browse files Browse the repository at this point in the history
* fix modal dialogues

* fix modal dialogues

* re-minify js files

* update peermarkLaunch call
  • Loading branch information
ixiongtii authored Feb 2, 2024
1 parent 6ea578b commit e7f2f38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion classes/turnitin_view.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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 = '';
Expand Down
2 changes: 1 addition & 1 deletion lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

Expand Down

0 comments on commit e7f2f38

Please sign in to comment.