From: julmis Date: Mon, 16 Aug 2004 09:44:43 +0000 (+0000) Subject: Don't ever try to load editor when using safari. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=7ada3fea233b4d235235b8063921f28d8f8e77ac;p=moodle.git Don't ever try to load editor when using safari. Safari isn't supported. --- diff --git a/lib/editor/htmlarea.php b/lib/editor/htmlarea.php index 98e2dd27c1..0a02569cda 100644 --- a/lib/editor/htmlarea.php +++ b/lib/editor/htmlarea.php @@ -1815,6 +1815,7 @@ HTMLArea.is_mac = (HTMLArea.agt.indexOf("mac") != -1); HTMLArea.is_mac_ie = (HTMLArea.is_ie && HTMLArea.is_mac); HTMLArea.is_win_ie = (HTMLArea.is_ie && !HTMLArea.is_mac); HTMLArea.is_gecko = (navigator.product == "Gecko"); +HTMLArea.is_safari = (HTMLArea.agt.indexOf("safari") != -1); // variable used to pass the object to the popup editor window. HTMLArea._object = null; @@ -1853,6 +1854,9 @@ HTMLArea.checkSupportedBrowser = function() { "I'll try, though, but it might not work."); } } + if(HTMLArea.is_safari) { + return false; + } return HTMLArea.is_gecko || HTMLArea.is_ie; };