]> git.mjollnir.org Git - moodle.git/commitdiff
Removed references to btnPost because I don't use it
authormoodler <moodler>
Sat, 12 Oct 2002 03:54:56 +0000 (03:54 +0000)
committermoodler <moodler>
Sat, 12 Oct 2002 03:54:56 +0000 (03:54 +0000)
lib/rte/rte_editmode.js

index 1d07499d3c577a8888872c0e207ffb83fcf53f0b..3f34d5e686afa2347aa63da48606b2669a4dbe6a 100644 (file)
 function setEditMode() {\r
        switchMode.blur(); // htmlview\r
        if (switchMode.checked == true) {\r
-               ctlStyle.disabled = ctlFont.disabled = ctlSize.disabled = btnPost.disabled = true;\r
-               btnPost.className = 'disabled';\r
+               ctlStyle.disabled = ctlFont.disabled = ctlSize.disabled = true;\r
                doc.style.fontFamily = "Courier";\r
                doc.style.fontSize = "10px";\r
                RichEditor.txtView = false;\r
                doc.innerText = codeSweeper();\r
                doc.innerHTML = ccParser(doc.innerHTML);\r
+        alert("Remember to uncheck this Source box again before saving your changes!!");\r
        } else {\r
-               ctlStyle.disabled = ctlFont.disabled = ctlSize.disabled = btnPost.disabled = false;\r
+               ctlStyle.disabled = ctlFont.disabled = ctlSize.disabled  = false;\r
                doc.style.fontFamily = doc.style.fontSize = "";\r
-               btnPost.className = '';\r
                RichEditor.txtView = true;\r
                doc.focus();\r
                doc.innerHTML = doc.innerText;\r