Add option to not show MathPlayer alert (helps with testsuite)

This commit is contained in:
Davide P. Cervone 2014-05-05 07:55:16 -04:00
parent 49ede41339
commit 085c80054c

View File

@ -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 {
//