Skip to content

Commit 2cce9d9

Browse files
committed
remove mathjax calls
1 parent f933477 commit 2cce9d9

File tree

6 files changed

+24
-27
lines changed

6 files changed

+24
-27
lines changed

controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@
465465
$stringman = get_string_manager();
466466
$strings = $stringman->load_component_strings('pdfannotator', 'en'); // Method gets the strings of the language files.
467467
$PAGE->requires->strings_for_js(array_keys($strings), 'pdfannotator'); // Method to use the language-strings in javascript.
468-
$PAGE->requires->js(new moodle_url("/mod/pdfannotator/shared/locallib.js?ver=00007"));
468+
$PAGE->requires->js(new moodle_url("/mod/pdfannotator/shared/locallib.js?ver=00008"));
469469
$PAGE->requires->js(new moodle_url("/mod/pdfannotator/shared/statistic.js?ver=0004"));
470470
$myrenderer = $PAGE->get_renderer('mod_pdfannotator');
471471
$capabilities = new stdClass();

locallib.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ function pdfannotator_display_embed($pdfannotator, $cm, $course, $file, $page =
6666
// Load and execute the javascript files.
6767
$PAGE->requires->js(new moodle_url("/mod/pdfannotator/shared/pdf.js?ver=00002"));
6868
$PAGE->requires->js(new moodle_url("/mod/pdfannotator/shared/textclipper.js"));
69-
$PAGE->requires->js(new moodle_url("/mod/pdfannotator/shared/index.js?ver=00041"));
70-
$PAGE->requires->js(new moodle_url("/mod/pdfannotator/shared/locallib.js?ver=00007"));
69+
$PAGE->requires->js(new moodle_url("/mod/pdfannotator/shared/index.js?ver=00042"));
70+
$PAGE->requires->js(new moodle_url("/mod/pdfannotator/shared/locallib.js?ver=00008"));
7171

7272
// Pass parameters from PHP to JavaScript.
7373

@@ -984,8 +984,8 @@ function pdfannotator_prepare_overviewpage($cmid, $myrenderer, $taburl, $action,
984984
$strings = $stringman->load_component_strings('pdfannotator', 'en'); // Method gets the strings of the language files.
985985
$PAGE->requires->strings_for_js(array_keys($strings), 'pdfannotator'); // Method to use the language-strings in javascript.
986986
// 1.3 Add the javascript file that determines the dynamic behaviour of the page.
987-
$PAGE->requires->js(new moodle_url("/mod/pdfannotator/shared/locallib.js?ver=00007"));
988-
$PAGE->requires->js(new moodle_url("/mod/pdfannotator/shared/overview.js?ver=00003"));
987+
$PAGE->requires->js(new moodle_url("/mod/pdfannotator/shared/locallib.js?ver=00008"));
988+
$PAGE->requires->js(new moodle_url("/mod/pdfannotator/shared/overview.js?ver=00004"));
989989

990990
// 1.4 Check user capabilities to view the different categories.
991991
// The argument 'false' disregards administrator's magical 'doanything' power.

shared/index.js

Lines changed: 11 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

shared/locallib.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ function addDropdownNavigation(Y, __capabilities, __cmid) {
8282
};
8383

8484
}
85-
86-
function renderMathJax(node) {
85+
/***** Removing this function for Moodle 5 ****/
86+
/*function renderMathJax(node) {
8787
var counter = 0;
8888
let mathjax = function (node) {
8989
if (typeof (MathJax) !== "undefined") {
@@ -97,7 +97,7 @@ function renderMathJax(node) {
9797
}
9898
};
9999
mathjax(node);
100-
}
100+
}*/
101101

102102
function fixCommentForm() {
103103
if ($('#comment-list-form').hasClass('fixtool')) {

shared/overview.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function startOverview(Y, __annotatorid, __cmid, __capabilities, __action) { //
3636
}
3737

3838
shortenTextOverview();
39-
renderMathJax();
39+
//renderMathJax();
4040

4141
/************************** 2. Function definitions **************************/
4242

@@ -477,8 +477,8 @@ function startOverview(Y, __annotatorid, __cmid, __capabilities, __action) { //
477477
});
478478
});
479479
}
480-
481-
function renderMathJax() {
480+
/***** Removing this function for Moodle 5 ****/
481+
/*function renderMathJax() {
482482
var counter = 0;
483483
let mathjax = function () {
484484
if (typeof (MathJax) !== "undefined") {
@@ -492,6 +492,6 @@ function startOverview(Y, __annotatorid, __cmid, __capabilities, __action) { //
492492
}
493493
};
494494
mathjax();
495-
}
495+
}*/
496496

497497
}

version.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,7 @@
2525
defined('MOODLE_INTERNAL') || die();
2626

2727
$plugin->component = 'mod_pdfannotator';
28-
$plugin->version = 2025070803;
28+
$plugin->version = 2025071000;
2929
$plugin->release = 'PDF Annotator v1.5 release 9';
30-
$plugin->supported = [
31-
404,
32-
405,
33-
500,
34-
];
3530
$plugin->requires = 2021051700;
3631
$plugin->maturity = MATURITY_STABLE;

0 commit comments

Comments
 (0)