Add a hidden menu item that controls the AssistiveMML extension.
This commit is contained in:
parent
f0cc437b1e
commit
82e0daf2c6
|
@ -1115,7 +1115,8 @@
|
||||||
ITEM.RADIO("MathML", "renderer", {action: MENU.Renderer, value:"NativeMML"}),
|
ITEM.RADIO("MathML", "renderer", {action: MENU.Renderer, value:"NativeMML"}),
|
||||||
ITEM.RADIO("SVG", "renderer", {action: MENU.Renderer}),
|
ITEM.RADIO("SVG", "renderer", {action: MENU.Renderer}),
|
||||||
ITEM.RULE(),
|
ITEM.RULE(),
|
||||||
ITEM.CHECKBOX("Fast Preview", "CHTMLpreview")
|
ITEM.CHECKBOX("Fast Preview", "CHTMLpreview"),
|
||||||
|
ITEM.CHECKBOX("Assistive MathML", "assistiveMML", {hidden:!CONFIG.showAssistiveMML})
|
||||||
),
|
),
|
||||||
ITEM.SUBMENU("MathPlayer", {hidden:!HUB.Browser.isMSIE || !CONFIG.showMathPlayer,
|
ITEM.SUBMENU("MathPlayer", {hidden:!HUB.Browser.isMSIE || !CONFIG.showMathPlayer,
|
||||||
disabled:!HUB.Browser.hasMathPlayer},
|
disabled:!HUB.Browser.hasMathPlayer},
|
||||||
|
@ -1202,6 +1203,10 @@
|
||||||
MENU.cookie.showLocale = CONFIG.showLocale = show; MENU.saveCookie();
|
MENU.cookie.showLocale = CONFIG.showLocale = show; MENU.saveCookie();
|
||||||
MENU.menu.Find("Language").hidden = !show;
|
MENU.menu.Find("Language").hidden = !show;
|
||||||
};
|
};
|
||||||
|
MENU.showAssistiveMML = function (show) {
|
||||||
|
MENU.cookie.showAssistiveMML = CONFIG.showAssistiveMML = show; MENU.saveCookie();
|
||||||
|
MENU.menu.Find("Math Settings","Math Renderer","Assistive MathML").hidden = !show;
|
||||||
|
};
|
||||||
|
|
||||||
MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function () {
|
MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function () {
|
||||||
if (!MathJax.OutputJax["HTML-CSS"].config.imageFont)
|
if (!MathJax.OutputJax["HTML-CSS"].config.imageFont)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user