From 085c80054c825aa2b3bb03ca731bee733c406442 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Mon, 5 May 2014 07:55:16 -0400 Subject: [PATCH] Add option to not show MathPlayer alert (helps with testsuite) --- unpacked/jax/output/NativeMML/jax.js | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/unpacked/jax/output/NativeMML/jax.js b/unpacked/jax/output/NativeMML/jax.js index 92fd152a2..ec48b706c 100644 --- a/unpacked/jax/output/NativeMML/jax.js +++ b/unpacked/jax/output/NativeMML/jax.js @@ -195,17 +195,19 @@ // // If that fails, give an alert about security settings // - alert(MathJax.Localization._(["MathML", "MathPlayer"], - "MathJax was not able to set up MathPlayer.\n\n"+ - "If MathPlayer is not installed, you need to install it first.\n"+ - "Otherwise, your security settings may be preventing ActiveX \n"+ - "controls from running. Use the Internet Options item under\n"+ - "the Tools menu and select the Security tab, then press the\n"+ - "Custom Level button. Check that the settings for\n"+ - "'Run ActiveX Controls', and 'Binary and script behaviors'\n"+ - "are enabled.\n\n"+ - "Currently you will see error messages rather than\n"+ - "typeset mathematics.")); + if (!this.config.noMathPlayerWarning) { + alert(MathJax.Localization._(["MathML", "MathPlayer"], + "MathJax was not able to set up MathPlayer.\n\n"+ + "If MathPlayer is not installed, you need to install it first.\n"+ + "Otherwise, your security settings may be preventing ActiveX \n"+ + "controls from running. Use the Internet Options item under\n"+ + "the Tools menu and select the Security tab, then press the\n"+ + "Custom Level button. Check that the settings for\n"+ + "'Run ActiveX Controls', and 'Binary and script behaviors'\n"+ + "are enabled.\n\n"+ + "Currently you will see error messages rather than\n"+ + "typeset mathematics.")); + } } } else { //