www

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

commit 1c938cc48ea7ac3666426bf5c1221bc57fb97afd
parent 3cdcd73b01a0a3407586934e3fb63f06d35bc9c3
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Thu,  3 Dec 2015 08:02:08 -0500

Add CommonHTML to the 'Scale All Math' list.  Issue #1324.

Diffstat:
Munpacked/extensions/MathMenu.js | 9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/unpacked/extensions/MathMenu.js b/unpacked/extensions/MathMenu.js @@ -1213,8 +1213,9 @@ * Handle rescaling all the math */ MENU.Scale = function () { - var HTMLCSS = OUTPUT["HTML-CSS"], nMML = OUTPUT.NativeMML, SVG = OUTPUT.SVG; - var SCALE = (HTMLCSS||nMML||SVG||{config:{scale:100}}).config.scale; + var HTMLCSS = OUTPUT["HTML-CSS"], nMML = OUTPUT.NativeMML, + SVG = OUTPUT.SVG, CHTML = OUTPUT.CommonHTML; + var SCALE = (CHTML||HTMLCSS||nMML||SVG||{config:{scale:100}}).config.scale; var scale = prompt(_("ScaleMath","Scale all mathematics (compared to surrounding text) by"),SCALE+"%"); if (scale) { if (scale.match(/^\s*\d+(\.\d*)?\s*%?\s*$/)) { @@ -1222,10 +1223,12 @@ if (scale) { if (scale !== SCALE) { if (HTMLCSS) {HTMLCSS.config.scale = scale} + if (CHTML) {CHTML.config.scale = scale} if (nMML) {nMML.config.scale = scale} if (SVG) {SVG.config.scale = scale} MENU.cookie.scale = scale; - MENU.saveCookie(); HUB.Rerender(); + MENU.saveCookie(); + HUB.Queue(["Rerender",HUB]); } } else {alert(_("NonZeroScale","The scale should not be zero"))} } else {alert(_("PercentScale",