Skip to content

Commit

Permalink
Merge pull request #720 from turnitin/develop
Browse files Browse the repository at this point in the history
Release 2024032901
  • Loading branch information
carl-hostrander authored Mar 29, 2024
2 parents ff44ca9 + 18fe96e commit 65a9de1
Show file tree
Hide file tree
Showing 14 changed files with 27 additions and 19 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
### Date: 2024-March-29
### Release: v2024032901

#### Export Buttons Fixed

The export buttons along with the individual submission refresh and download buttons and the bulk submission download buttons are now functioning as expected.

### Date: 2024-February-06
### Release: v2024020601

Expand Down
2 changes: 1 addition & 1 deletion classes/v1migration/v1migration.php
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ private function log_success_migration_event($turnitintooltwoid, $course_id, $v1
}

/**
* Get assignments for migrated data table. Called from ajax.php via turnitintooltwo_extra-2024020601.min.js.
* Get assignments for migrated data table. Called from ajax.php via turnitintooltwo_extra-2024032901.min.js.
*
* @global type $DB
* @return array return array of assignments to display
Expand Down
6 changes: 3 additions & 3 deletions jquery/plugins.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
$plugins = array(
'turnitintooltwo-dataTables' => array('files' => array('jquery.dataTables.js', 'jquery.dataTables.css')),
'turnitintooltwo-dataTables_plugins' => array('files' => array('jquery.dataTables.plugins.js')),
'turnitintooltwo-turnitintooltwo' => array('files' => array('turnitintooltwo-2024020601.min.js')),
'turnitintooltwo-turnitintooltwo_extra' => array('files' => array('turnitintooltwo_extra-2024020601.min.js')),
'turnitintooltwo-turnitintooltwo_settings' => array('files' => array('turnitintooltwo_settings-2024020601.min.js')),
'turnitintooltwo-turnitintooltwo' => array('files' => array('turnitintooltwo-2024032901.min.js')),
'turnitintooltwo-turnitintooltwo_extra' => array('files' => array('turnitintooltwo_extra-2024032901.min.js')),
'turnitintooltwo-turnitintooltwo_settings' => array('files' => array('turnitintooltwo_settings-2024032901.min.js')),
'turnitintooltwo-datatables_columnfilter' => array('files' => array('jquery.dataTables.columnFilter.js')),
'turnitintooltwo-cookie' => array('files' => array('jquery.cookie.js')),
'turnitintooltwo-colorbox' => array('files' => array('jquery.colorbox.js', 'colorbox.css')),
Expand Down
1 change: 0 additions & 1 deletion jquery/turnitintooltwo-2024020601.min.js.map

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -1164,10 +1164,10 @@
// ZIP containing all files in original format.
function initialiseZipDownloads(part_id) {
// Unbind the event first to stop it being binded multiple times.
$('#tabs-' + part_id + ' .orig_zip_open, #tabs-' + part_id + ' .pdf_zip_open, #tabs-' + part_id + ' .xls_inbox_open').off("click");
$('#tabs-' + part_id + ' .orig_zip_open, #tabs-' + part_id + ' .pdf_zip_open, #tabs-' + part_id + ' .xls_inbox_open').unbind("click");

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

function initialiseHiddenZipDownloads(part_id) {
// Unbind the event first to stop it being binded multiple times.
$('#tabs-' + part_id + ' .mod_turnitintooltwo_origchecked_zip_open').off("click");
$('#tabs-' + part_id + ' .mod_turnitintooltwo_origchecked_zip_open').unbind("click");
// Seperate binder for hidden zip file link.
$('#tabs-' + part_id + ' .mod_turnitintooltwo_origchecked_zip_open').on(function () {
$('#tabs-' + part_id + ' .mod_turnitintooltwo_origchecked_zip_open').click(function () {
var idStr = $(this).attr("id").split("_");
downloadZipFile(idStr[0] + "_" + idStr[1], part_id);
return false;
Expand All @@ -1255,9 +1255,9 @@
}

// Unbind the event first to stop it being binded multiple times.
$(identifier).off("click");
$(identifier).unbind("click");

$(identifier).on(function () {
$(identifier).click(function () {
$(this).hide();
$(this).siblings('.fa-spinner').css("display", "inline-block").addClass('fa-lg');
var idStr = $(this).parent().attr("id").split("_");
Expand All @@ -1273,9 +1273,9 @@
}

// Unbind the event first to stop it being binded multiple times.
$(identifier).off("click");
$(identifier).unbind("click");

$(identifier).on(function () {
$(identifier).click(function () {
var idStr = $(this).attr("id").split("_");
// Don't open OR DV if score is pending.
if (!$(this).children('.score_colour').hasClass('score_colour_')) {
Expand Down Expand Up @@ -1425,7 +1425,7 @@
$('#tabs-' + part_id + ' .mod_turnitintooltwo_zip_downloads button').removeAttr("title");
initialiseHiddenZipDownloads(part_id);
} else {
$('#tabs-' + part_id + ' .mod_turnitintooltwo_origchecked_zip_open').off('click');
$('#tabs-' + part_id + ' .mod_turnitintooltwo_origchecked_zip_open').unbind('click');
$('#tabs-' + part_id + ' .mod_turnitintooltwo_zip_downloads button').prop("disabled", true);
$('#tabs-' + part_id + ' .mod_turnitintooltwo_zip_downloads button').prop("title", M.str.turnitintooltwo.download_button_warning);
}
Expand Down

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions jquery/turnitintooltwo-2024032901.min.js.map

Large diffs are not rendered by default.

File renamed without changes.
4 changes: 2 additions & 2 deletions lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1167,7 +1167,7 @@ function turnitintooltwo_sort_array(&$data, $sortcol, $sortdir) {
}

/**
* Get files for displaying in settings. Called from ajax.php via turnitintooltwo-2024020601.min.js.
* Get files for displaying in settings. Called from ajax.php via turnitintooltwo-2024032901.min.js.
*
* @param $moduleid the id of the module to return files for
* @global type $DB
Expand Down Expand Up @@ -1290,7 +1290,7 @@ function turnitintooltwo_pluginfile($course,
}

/**
* Get users for unlinking/relinking. Called from ajax.php via turnitintooltwo-2024020601.min.js.
* Get users for unlinking/relinking. Called from ajax.php via turnitintooltwo-2024032901.min.js.
*
* @global type $DB
* @return array return array of users to display
Expand Down
3 changes: 2 additions & 1 deletion tests/unit/classes/view/turnitintooltwo_view_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class mod_turnitintooltwo_view_testcase extends test_lib {
/**
* Test that the page layout is set to standard so that the header displays.
*/

public function test_output_header() {
global $PAGE;
$turnitintooltwoview = new turnitintooltwo_view();
Expand All @@ -53,7 +54,7 @@ public function test_output_header() {
$turnitintooltwoview->output_header($pageurl, $pagetitle, $pageheading, true);

$this->assertStringContainsString($pageurl, (string)$PAGE->url);
$this->assertEquals($pagetitle, $PAGE->title);
$this->assertStringContainsString($pagetitle, $PAGE->title);
$this->assertEquals($pageheading, $PAGE->heading);
}

Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
$plugin = new StdClass();
}

$plugin->version = 2024020601;
$plugin->version = 2024032901;
$plugin->release = "4.1+";
$plugin->requires = 2016052300;
$plugin->component = 'mod_turnitintooltwo';
Expand Down

0 comments on commit 65a9de1

Please sign in to comment.