Skip to content

Commit ff44ca9

Browse files
authored
Merge pull request #713 from turnitin/develop
Release v2024020601
2 parents 05d468d + de065b4 commit ff44ca9

18 files changed

+47
-39
lines changed

CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
### Date: 2024-February-06
2+
### Release: v2024020601
3+
4+
#### Anonymous Marking Fixed
5+
An issue has been resolved with anonymous marking, where previously when an instructor made a request to reveal a student’s name prior to the feedback release date, the required reason field for the early reveal was not actually being enforced. Instructors will now be required to fill in this field when deciding to reveal a student name early.
6+
7+
#### Removed Summary Content in Moodle Direct V2 Assignment Inbox
8+
In versions 4.0+ of Moodle, the assignment summary content was being displayed twice in two separate locations. This update removes the display of the summary content from the Moodle Direct V2 inbox and it is now only displayed just above the inbox.
9+
10+
#### Resolved Deprecated Warning Messages
11+
This release resolves the issue with deprecated SOAP warnings displaying in PHP 8+.
12+
113
### Date: 2023-March-27
214
### Release: v2023032701
315

ajax.php

+3-6
Original file line numberDiff line numberDiff line change
@@ -569,15 +569,12 @@
569569
$turnitintooltwosubmission = new turnitintooltwo_submission($submissionid, "turnitin");
570570
if ($turnitintooltwosubmission->unanonymise_submission($reason)) {
571571
if ($turnitintooltwosubmission->userid == 0) {
572-
573572
$tmpuser = new stdClass();
574-
$tmpuser->firstname = $turnitintooltwosubmission->nmfirstname;
575-
$tmpuser->lastname = $turnitintooltwosubmission->nmlastname;
576-
573+
$tmpuser->firstname = $turnitintooltwosubmission->firstname;
574+
$tmpuser->lastname = $turnitintooltwosubmission->lastname;
577575
$return["name"] = fullname($tmpuser);
578576
} else {
579-
$user = new turnitintooltwo_user($turnitintooltwosubmission->userid);
580-
$return["name"] = fullname($user);
577+
$return["name"] = $turnitintooltwosubmission->fullname;
581578
}
582579
$return["status"] = "success";
583580
$return["userid"] = $turnitintooltwosubmission->userid;

classes/v1migration/v1migration.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ private function log_success_migration_event($turnitintooltwoid, $course_id, $v1
550550
}
551551

552552
/**
553-
* Get assignments for migrated data table. Called from ajax.php via turnitintooltwo_extra-2023032701.min.js.
553+
* Get assignments for migrated data table. Called from ajax.php via turnitintooltwo_extra-2024020601.min.js.
554554
*
555555
* @global type $DB
556556
* @return array return array of assignments to display

jquery/plugins.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
$plugins = array(
2020
'turnitintooltwo-dataTables' => array('files' => array('jquery.dataTables.js', 'jquery.dataTables.css')),
2121
'turnitintooltwo-dataTables_plugins' => array('files' => array('jquery.dataTables.plugins.js')),
22-
'turnitintooltwo-turnitintooltwo' => array('files' => array('turnitintooltwo-2023032701.min.js')),
23-
'turnitintooltwo-turnitintooltwo_extra' => array('files' => array('turnitintooltwo_extra-2023032701.min.js')),
24-
'turnitintooltwo-turnitintooltwo_settings' => array('files' => array('turnitintooltwo_settings-2023032701.min.js')),
22+
'turnitintooltwo-turnitintooltwo' => array('files' => array('turnitintooltwo-2024020601.min.js')),
23+
'turnitintooltwo-turnitintooltwo_extra' => array('files' => array('turnitintooltwo_extra-2024020601.min.js')),
24+
'turnitintooltwo-turnitintooltwo_settings' => array('files' => array('turnitintooltwo_settings-2024020601.min.js')),
2525
'turnitintooltwo-datatables_columnfilter' => array('files' => array('jquery.dataTables.columnFilter.js')),
2626
'turnitintooltwo-cookie' => array('files' => array('jquery.cookie.js')),
2727
'turnitintooltwo-colorbox' => array('files' => array('jquery.colorbox.js', 'colorbox.css')),

jquery/turnitintooltwo-2023032701.min.js

-1
This file was deleted.

jquery/turnitintooltwo-2023032701.js jquery/turnitintooltwo-2024020601.js

+17-11
Original file line numberDiff line numberDiff line change
@@ -1094,8 +1094,14 @@
10941094
}
10951095
$("#submission_id").html(submission_id);
10961096
$('#cboxLoadedContent .mod_turnitintooltwo_unanonymise_form').show();
1097-
$('#id_reveal').unbind("click");
1098-
$('#id_reveal').click(function () {
1097+
$('#id_reveal').prop('disabled', true);
1098+
1099+
$('#id_anonymous_reveal_reason').on('input', function() {
1100+
var reason_text = $(this).val();
1101+
$('#id_reveal').prop('disabled', reason_text === ''); // Enable/disable button based on textarea content
1102+
});
1103+
1104+
$('#id_reveal').on('click', function() {
10991105
$.ajax({
11001106
"dataType": 'json',
11011107
"type": "POST",
@@ -1158,10 +1164,10 @@
11581164
// ZIP containing all files in original format.
11591165
function initialiseZipDownloads(part_id) {
11601166
// Unbind the event first to stop it being binded multiple times.
1161-
$('#tabs-' + part_id + ' .orig_zip_open, #tabs-' + part_id + ' .pdf_zip_open, #tabs-' + part_id + ' .xls_inbox_open').unbind("click");
1167+
$('#tabs-' + part_id + ' .orig_zip_open, #tabs-' + part_id + ' .pdf_zip_open, #tabs-' + part_id + ' .xls_inbox_open').off("click");
11621168

11631169
// Open a spreadsheet or a zip file containing all the relevant data.
1164-
$('#tabs-' + part_id + ' .orig_zip_open, #tabs-' + part_id + ' .pdf_zip_open, #tabs-' + part_id + ' .xls_inbox_open').click(function () {
1170+
$('#tabs-' + part_id + ' .orig_zip_open, #tabs-' + part_id + ' .pdf_zip_open, #tabs-' + part_id + ' .xls_inbox_open').on(function () {
11651171
var idStr = $(this).attr("id").split("_");
11661172
downloadZipFile(idStr[0] + "_" + idStr[1], idStr[2]);
11671173
});
@@ -1233,9 +1239,9 @@
12331239

12341240
function initialiseHiddenZipDownloads(part_id) {
12351241
// Unbind the event first to stop it being binded multiple times.
1236-
$('#tabs-' + part_id + ' .mod_turnitintooltwo_origchecked_zip_open').unbind("click");
1242+
$('#tabs-' + part_id + ' .mod_turnitintooltwo_origchecked_zip_open').off("click");
12371243
// Seperate binder for hidden zip file link.
1238-
$('#tabs-' + part_id + ' .mod_turnitintooltwo_origchecked_zip_open').click(function () {
1244+
$('#tabs-' + part_id + ' .mod_turnitintooltwo_origchecked_zip_open').on(function () {
12391245
var idStr = $(this).attr("id").split("_");
12401246
downloadZipFile(idStr[0] + "_" + idStr[1], part_id);
12411247
return false;
@@ -1249,9 +1255,9 @@
12491255
}
12501256

12511257
// Unbind the event first to stop it being binded multiple times.
1252-
$(identifier).unbind("click");
1258+
$(identifier).off("click");
12531259

1254-
$(identifier).click(function () {
1260+
$(identifier).on(function () {
12551261
$(this).hide();
12561262
$(this).siblings('.fa-spinner').css("display", "inline-block").addClass('fa-lg');
12571263
var idStr = $(this).parent().attr("id").split("_");
@@ -1267,9 +1273,9 @@
12671273
}
12681274

12691275
// Unbind the event first to stop it being binded multiple times.
1270-
$(identifier).unbind("click");
1276+
$(identifier).off("click");
12711277

1272-
$(identifier).click(function () {
1278+
$(identifier).on(function () {
12731279
var idStr = $(this).attr("id").split("_");
12741280
// Don't open OR DV if score is pending.
12751281
if (!$(this).children('.score_colour').hasClass('score_colour_')) {
@@ -1419,7 +1425,7 @@
14191425
$('#tabs-' + part_id + ' .mod_turnitintooltwo_zip_downloads button').removeAttr("title");
14201426
initialiseHiddenZipDownloads(part_id);
14211427
} else {
1422-
$('#tabs-' + part_id + ' .mod_turnitintooltwo_origchecked_zip_open').unbind('click');
1428+
$('#tabs-' + part_id + ' .mod_turnitintooltwo_origchecked_zip_open').off('click');
14231429
$('#tabs-' + part_id + ' .mod_turnitintooltwo_zip_downloads button').prop("disabled", true);
14241430
$('#tabs-' + part_id + ' .mod_turnitintooltwo_zip_downloads button').prop("title", M.str.turnitintooltwo.download_button_warning);
14251431
}

jquery/turnitintooltwo-2024020601.min.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jquery/turnitintooltwo-2024020601.min.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)