]> git.mjollnir.org Git - moodle.git/commitdiff
Fix for bug MDL-9942
authoranthonyforth <anthonyforth>
Fri, 25 May 2007 09:55:08 +0000 (09:55 +0000)
committeranthonyforth <anthonyforth>
Fri, 25 May 2007 09:55:08 +0000 (09:55 +0000)
lib/editor/htmlarea/htmlarea.php

index d0f6fae42f706a56ab06ec4ac7ff0c5e8cfc8903..921c33914b409d70c9d00c785c4666535ceb153e 100644 (file)
@@ -1140,7 +1140,13 @@ HTMLArea.prototype.updateToolbar = function(noStatus) {
     if (!text) {
         ancestors = this.getAllAncestors();
         if (this.config.statusBar && !noStatus) {
-            this._statusBarTree.innerHTML = HTMLArea.I18N.msg["Path"] + ": "; // clear
+
+            while(this._statusBarTree.childNodes.length>0) {
+                this._statusBarTree.removeChild(this._statusBarTree.childNodes[0]);
+            }
+
+            this._statusBarTree.appendChild(document.createTextNode(HTMLArea.I18N.msg["Path"] + ": "));
+
             for (var i = ancestors.length; --i >= 0;) {
                 var el = ancestors[i];
                 if (!el) {