Skip to content

Commit

Permalink
fixed bug #32128: Accordeon -vertical does not react after opening on…
Browse files Browse the repository at this point in the history
…e panel
  • Loading branch information
alex40724 authored and kergomard committed Oct 23, 2023
1 parent a4dfc51 commit 5844dff
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Modules/Scorm2004/scripts/questions/question_handling.js
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,7 @@ ilias.questions.showFeedback = function(a_id) {
const el = document.getElementById('feedback' + a_id);
if (el) {
el.style.display = '';
if (typeof MathJax != "undefined") {
if (typeof MathJax != "undefined" && typeof MathJax.Hub != "undefined") {
MathJax.Hub.Queue(["Typeset",MathJax.Hub, el]);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@

$this.data("modal", modal);

if (typeof MathJax != "undefined") {
MathJax.Hub.Queue(["Typeset", MathJax.Hub]);
if (typeof MathJax != "undefined" && typeof MathJax.Hub != "undefined") {
MathJax.Hub.Queue(["Typeset", MathJax.Hub]);
}

modal.show();
Expand Down
2 changes: 1 addition & 1 deletion Services/Accordion/js/accordion.js
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ il.Accordion = {
rerenderContent: function(acc_el) {

// rerender mathjax
if (typeof MathJax != "undefined") {
if (typeof MathJax != "undefined" && typeof MathJax.Hub != "undefined") {
MathJax.Hub.Queue(["Reprocess",MathJax.Hub, acc_el[0]]);
}
// see http://docs.mathjax.org/en/latest/typeset.html
Expand Down
6 changes: 3 additions & 3 deletions Services/COPage/templates/default/tpl.question_export.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
jQuery('div#container{VAL_ID}').autoRender(questions[{VAL_ID}]);
{HANDLE_IMAGES}

if (typeof MathJax != "undefined") {
if (typeof MathJax != "undefined" && typeof MathJax.Hub != "undefined") {
MathJax.Hub.Queue(["Typeset",MathJax.Hub, "container{VAL_ID}"]);
}
}
Expand Down Expand Up @@ -54,7 +54,7 @@

question.init();

if (typeof MathJax != "undefined") {
if (typeof MathJax != "undefined" && typeof MathJax.Hub != "undefined") {
MathJax.Hub.Queue(["Typeset", MathJax.Hub, "container{VAL_ID}"]);
}
};
Expand Down Expand Up @@ -303,7 +303,7 @@

questionData.engineInstance = question;

if (typeof MathJax != "undefined") {
if (typeof MathJax != "undefined" && typeof MathJax.Hub != "undefined") {
MathJax.Hub.Queue(["Typeset", MathJax.Hub, "container{VAL_ID}"]);
}
}
Expand Down
2 changes: 1 addition & 1 deletion Services/JavaScript/js/Basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ il.Util = {
*/
print: function () {
if (typeof(window.print) != 'undefined') {
if (typeof MathJax !== 'undefined') {
if (typeof MathJax != "undefined" && typeof MathJax.Hub != "undefined") {
MathJax.Hub.Queue(
["Delay",MathJax.Callback,700],
window.print
Expand Down

0 comments on commit 5844dff

Please sign in to comment.