Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle-qtype_stack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elc
moodle-qtype_stack
Commits
3bf92faf
Commit
3bf92faf
authored
1 year ago
by
smmercuri
Browse files
Options
Downloads
Patches
Plain Diff
Update MathJax2 version fetching
parent
f02d58c8
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
stack/cas/castext2/blocks/parsons.block.php
+5
-2
5 additions, 2 deletions
stack/cas/castext2/blocks/parsons.block.php
with
5 additions
and
2 deletions
stack/cas/castext2/blocks/parsons.block.php
+
5
−
2
View file @
3bf92faf
...
@@ -101,7 +101,7 @@ class stack_cas_castext2_parsons extends stack_cas_castext2_block {
...
@@ -101,7 +101,7 @@ class stack_cas_castext2_parsons extends stack_cas_castext2_block {
$r
->
items
[]
=
new
MP_String
(
json_encode
(
$xpars
));
$r
->
items
[]
=
new
MP_String
(
json_encode
(
$xpars
));
// Plug in some style and scripts.
// Plug in some style and scripts.
$mathjax
=
(
$mathjaxversion
===
"2"
)
?
stack_get_mathjax_url
()
:
stack_get_mathjax3_url
();
$mathjax
=
(
$mathjaxversion
===
"2"
)
?
stack_get_mathjax
2
_url
_cdnjs
()
:
stack_get_mathjax3_url
();
$r
->
items
[]
=
new
MP_List
([
$r
->
items
[]
=
new
MP_List
([
new
MP_String
(
'script'
),
new
MP_String
(
'script'
),
new
MP_String
(
json_encode
([
'type'
=>
'text/javascript'
,
'src'
=>
$mathjax
]))]);
new
MP_String
(
json_encode
([
'type'
=>
'text/javascript'
,
'src'
=>
$mathjax
]))]);
...
@@ -229,7 +229,10 @@ class stack_cas_castext2_parsons extends stack_cas_castext2_block {
...
@@ -229,7 +229,10 @@ class stack_cas_castext2_parsons extends stack_cas_castext2_block {
$code
.
=
'sortableAvailable.option("onSort", () => {stackSortable.update_state(sortableUsed, sortableAvailable);});'
.
"
\n
"
;
$code
.
=
'sortableAvailable.option("onSort", () => {stackSortable.update_state(sortableUsed, sortableAvailable);});'
.
"
\n
"
;
// Options can now be validated since sortable objects have been instantiated, we throw warnings only
// Options can now be validated since sortable objects have been instantiated, we throw warnings only
$code
.
=
'stackSortable.validate_options(possibleOptionKeys);'
.
"
\n
"
;
$code
.
=
'stackSortable.validate_options(
possibleOptionKeys,
"'
.
stack_string
(
'stackBlock_unknown_sortable_option'
)
.
'",
"'
.
stack_string
(
'stackBlock_overwritten_sortable_option'
)
.
'");'
.
"
\n
"
;
// Create bin and add delete-all button events for clone mode.
// Create bin and add delete-all button events for clone mode.
if
(
$clone
===
"true"
)
{
if
(
$clone
===
"true"
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment