From 0a690c31a3d5cefb71fbfc3137ceee265dc5e3e4 Mon Sep 17 00:00:00 2001 From: DawoudSheraz Date: Tue, 23 Apr 2019 12:33:54 +0500 Subject: [PATCH] remove mathjax autocollapse feature --- cms/static/cms/js/require-config.js | 6 +++++- common/static/common/js/discussion/mathjax_include.js | 2 +- common/templates/mathjax_include.html | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/cms/static/cms/js/require-config.js b/cms/static/cms/js/require-config.js index 1cd6d04494..7deda745b9 100644 --- a/cms/static/cms/js/require-config.js +++ b/cms/static/cms/js/require-config.js @@ -56,7 +56,10 @@ // When upgrading to 2.6, check if this variable name changed. window.MathJax = { menuSettings: { - CHTMLpreview: false + CHTMLpreview: false, + collapsible: true, + autocollapse: false, + explorer: true } }; }; @@ -258,6 +261,7 @@ ] } }); + // In order to eliminate all flashing during interactive // preview, it is necessary to set processSectionDelay to 0 // (remove delay between input and output phases). This diff --git a/common/static/common/js/discussion/mathjax_include.js b/common/static/common/js/discussion/mathjax_include.js index a34223d378..ae65fbaf59 100644 --- a/common/static/common/js/discussion/mathjax_include.js +++ b/common/static/common/js/discussion/mathjax_include.js @@ -46,7 +46,7 @@ if (typeof MathJax === 'undefined') { window.MathJax = { menuSettings: { collapsible: true, - autocollapse: true, + autocollapse: false, explorer: true } }; diff --git a/common/templates/mathjax_include.html b/common/templates/mathjax_include.html index 6a56217019..d736d01b8e 100644 --- a/common/templates/mathjax_include.html +++ b/common/templates/mathjax_include.html @@ -80,7 +80,7 @@ window.MathJax = { menuSettings: { collapsible: true, - autocollapse: true, + autocollapse: false, explorer: true } };