for #1137: disable CHTMLpreview.js on IE<8

This commit is contained in:
Peter Krautzberger 2015-03-27 11:09:44 +01:00 committed by Davide P. Cervone
parent b9e3761714
commit 95c00da5ea

View File

@ -26,7 +26,7 @@
* limitations under the License.
*/
(function (HUB,HTML) {
(function (HUB,HTML,BROWSER) {
var SETTINGS = HUB.config.menuSettings;
@ -42,7 +42,7 @@
color: "inherit!important",
updateTime: 30, updateDelay: 6,
messageStyle: "none",
disabled: false
disabled: ((BROWSER.isMSIE && BROWSER.version < 8) ? true : false)
}),
//
@ -133,7 +133,7 @@
HUB.Startup.signal.Post("CHTML-preview Ready");
})(MathJax.Hub,MathJax.HTML);
})(MathJax.Hub,MathJax.HTML,MathJax.Hub.Browser);
MathJax.Ajax.loadComplete("[MathJax]/extensions/CHTML-preview.js");