Fix problem where selecting the renderer menu failed to rerender the mathematics
This commit is contained in:
parent
09851b9a0b
commit
331b9ee6f1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
16
config/local/AMS.js
Normal file
16
config/local/AMS.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1473,8 +1473,6 @@ MathJax.Hub = {
|
||||||
if (jax.called) continue; // go back and call Process() again
|
if (jax.called) continue; // go back and call Process() again
|
||||||
this.RestartAfter(jax); // wait for the callback
|
this.RestartAfter(jax); // wait for the callback
|
||||||
}
|
}
|
||||||
jax.Attach(script,this.inputJax[type].id); // register the jax on the script
|
|
||||||
script.MathJax.state = STATE.OUTPUT; // mark it as needing output
|
|
||||||
//
|
//
|
||||||
if (!this.outputJax[jax.mimeType]) { // check for existing output jax
|
if (!this.outputJax[jax.mimeType]) { // check for existing output jax
|
||||||
script.MathJax.state = STATE.UPDATE;
|
script.MathJax.state = STATE.UPDATE;
|
||||||
|
@ -1497,6 +1495,9 @@ MathJax.Hub = {
|
||||||
state.jaxIDs.push(jax.outputJax); // save the ID of the jax
|
state.jaxIDs.push(jax.outputJax); // save the ID of the jax
|
||||||
}
|
}
|
||||||
if (state.jaxIDs.length > 1) {state.jax[jax.outputJax].push(script)}
|
if (state.jaxIDs.length > 1) {state.jax[jax.outputJax].push(script)}
|
||||||
|
//
|
||||||
|
jax.Attach(script,this.inputJax[type].id); // register the jax on the script
|
||||||
|
script.MathJax.state = STATE.OUTPUT; // mark it as needing output
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
// Go on to the next script, and check if we need to update the processing message
|
// Go on to the next script, and check if we need to update the processing message
|
||||||
|
@ -2095,6 +2096,7 @@ MathJax.Hub.Startup = {
|
||||||
jax.originalText = (script.text == "" ? script.innerHTML : script.text);
|
jax.originalText = (script.text == "" ? script.innerHTML : script.text);
|
||||||
jax.inputJax = inputJax;
|
jax.inputJax = inputJax;
|
||||||
if (jax.root) {jax.root.inputID = jax.inputID}
|
if (jax.root) {jax.root.inputID = jax.inputID}
|
||||||
|
return jax;
|
||||||
},
|
},
|
||||||
Detach: function () {
|
Detach: function () {
|
||||||
var script = this.SourceElement(); if (!script) return;
|
var script = this.SourceElement(); if (!script) return;
|
||||||
|
@ -2115,7 +2117,7 @@ MathJax.Hub.Startup = {
|
||||||
}
|
}
|
||||||
},{
|
},{
|
||||||
id: "ElementJax",
|
id: "ElementJax",
|
||||||
version: "1.1.1",
|
version: "1.1.2",
|
||||||
directory: JAX.directory+"/element",
|
directory: JAX.directory+"/element",
|
||||||
extensionDir: JAX.extensionDir,
|
extensionDir: JAX.extensionDir,
|
||||||
ID: 0, // jax counter (for IDs)
|
ID: 0, // jax counter (for IDs)
|
||||||
|
|
|
@ -729,7 +729,7 @@
|
||||||
* Handle changing the renderer
|
* Handle changing the renderer
|
||||||
*/
|
*/
|
||||||
MENU.Renderer = function () {
|
MENU.Renderer = function () {
|
||||||
var jax = HUB.config.outputJax["jax/mml"];
|
var jax = HUB.outputJax["jax/mml"];
|
||||||
if (jax[0] !== CONFIG.settings.renderer) {
|
if (jax[0] !== CONFIG.settings.renderer) {
|
||||||
CALLBACK.Queue(
|
CALLBACK.Queue(
|
||||||
["Require",AJAX,"[MathJax]/jax/output/"+CONFIG.settings.renderer+"/config.js"],
|
["Require",AJAX,"[MathJax]/jax/output/"+CONFIG.settings.renderer+"/config.js"],
|
||||||
|
|
Loading…
Reference in New Issue
Block a user