]> git.mjollnir.org Git - moodle.git/commitdiff
Added the fix to make editor work better on SSL, as described here:
authormoodler <moodler>
Sat, 5 Jun 2004 10:38:42 +0000 (10:38 +0000)
committermoodler <moodler>
Sat, 5 Jun 2004 10:38:42 +0000 (10:38 +0000)
   http://moodle.org/mod/forum/discuss.php?d=8555

lib/editor/htmlarea.php

index ca8915d8c73a019e24ddff55325f57ee5623334b..a3bf6aa001d702d8a3f16a2d806f426c01de9b1d 100644 (file)
@@ -699,6 +699,12 @@ HTMLArea.prototype.generate = function () {
 
     // create the IFRAME
     var iframe = document.createElement("iframe");
+
+    if (HTMLArea.is_ie) {  // http://moodle.org/mod/forum/discuss.php?d=8555
+        // tricky! set src to local url to turn off SSL security alert
+        iframe.src = this.config.popupURL+"blank.html";
+    }
+
     htmlarea.appendChild(iframe);
 
     this._iframe = iframe;