www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 82e0daf2c6c369aaa55a85fa646be427c18fbe89
parent f0cc437b1e61d05c6c46d6b64a2a947c815272bf
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Thu, 23 Jul 2015 17:09:43 -0400

Add a hidden menu item that controls the AssistiveMML extension.

Diffstat:
Munpacked/extensions/MathMenu.js | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/unpacked/extensions/MathMenu.js b/unpacked/extensions/MathMenu.js @@ -1115,7 +1115,8 @@ ITEM.RADIO("MathML", "renderer", {action: MENU.Renderer, value:"NativeMML"}), ITEM.RADIO("SVG", "renderer", {action: MENU.Renderer}), 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, disabled:!HUB.Browser.hasMathPlayer}, @@ -1202,6 +1203,10 @@ MENU.cookie.showLocale = CONFIG.showLocale = show; MENU.saveCookie(); 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 () { if (!MathJax.OutputJax["HTML-CSS"].config.imageFont)