From e753201ea8551d82d9bba57737fc5b67ffc240b3 Mon Sep 17 00:00:00 2001 From: dongsheng Date: Fri, 5 Dec 2008 00:57:21 +0000 Subject: [PATCH] HTMLAREA/MDL-17448 fix flaw in logic, yui event module shouldn't be loaded in IE. Credit go to Kris Thornley, thanks. --- lib/editor/htmlarea/popups/fullscreen.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/editor/htmlarea/popups/fullscreen.php b/lib/editor/htmlarea/popups/fullscreen.php index 2cc07048083..d6e3c0f76b6 100644 --- a/lib/editor/htmlarea/popups/fullscreen.php +++ b/lib/editor/htmlarea/popups/fullscreen.php @@ -34,7 +34,7 @@ for (var i = 0; i < scripts.length; ++i) { } else { new_script.src = "../" + script.src; } - if (navigator.appVersion.indexOf("MSIE") > 0 && script.src.indexOf("yui/event/event") == false) { + if (navigator.appVersion.indexOf("MSIE") == -1 || script.src.indexOf("yui/event/event") == -1) { head.appendChild(new_script); } }