From 95c00da5ea1cd0372632238a775668c005e0d2fc Mon Sep 17 00:00:00 2001
From: Peter Krautzberger
Date: Fri, 27 Mar 2015 11:09:44 +0100
Subject: [PATCH] for #1137: disable CHTMLpreview.js on IE<8
---
unpacked/extensions/CHTML-preview.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/unpacked/extensions/CHTML-preview.js b/unpacked/extensions/CHTML-preview.js
index a52ba5cde..77d2a9217 100644
--- a/unpacked/extensions/CHTML-preview.js
+++ b/unpacked/extensions/CHTML-preview.js
@@ -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");