Skip to content

Commit

Permalink
Moving string for js to the right file
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-tii committed Nov 29, 2024
1 parent 046139e commit 9f8792d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,8 @@ public function load_page_components() {
return;
}

$PAGE->requires->string_for_js('turnitin_score_refresh_alert', 'plagiarism_turnitin');

$PAGE->requires->js_call_amd('plagiarism_turnitin/open_viewer', 'origreport_open');
$PAGE->requires->js_call_amd('plagiarism_turnitin/open_viewer', 'grademark_open');
// Moodle 4.3 uses a new Modal dialog that is not compatible with older versions of Moodle. Depending on the user's
Expand Down
1 change: 0 additions & 1 deletion settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@
$PAGE->requires->string_for_js('connecttest', 'plagiarism_turnitin');
$PAGE->requires->string_for_js('connecttestsuccess', 'plagiarism_turnitin');
$PAGE->requires->string_for_js('connecttestfailed', 'plagiarism_turnitin');
$PAGE->requires->string_for_js('turnitin_score_refresh_alert', 'plagiarism_turnitin');

// Strings for js specifically for For data tables.
$PAGE->requires->string_for_js('nointegration', 'plagiarism_turnitin');
Expand Down

0 comments on commit 9f8792d

Please sign in to comment.