Removed references to btnPost because I don't use it
This commit is contained in:
@@ -60,17 +60,16 @@
|
||||
function setEditMode() {
|
||||
switchMode.blur(); // htmlview
|
||||
if (switchMode.checked == true) {
|
||||
ctlStyle.disabled = ctlFont.disabled = ctlSize.disabled = btnPost.disabled = true;
|
||||
btnPost.className = 'disabled';
|
||||
ctlStyle.disabled = ctlFont.disabled = ctlSize.disabled = true;
|
||||
doc.style.fontFamily = "Courier";
|
||||
doc.style.fontSize = "10px";
|
||||
RichEditor.txtView = false;
|
||||
doc.innerText = codeSweeper();
|
||||
doc.innerHTML = ccParser(doc.innerHTML);
|
||||
alert("Remember to uncheck this Source box again before saving your changes!!");
|
||||
} else {
|
||||
ctlStyle.disabled = ctlFont.disabled = ctlSize.disabled = btnPost.disabled = false;
|
||||
ctlStyle.disabled = ctlFont.disabled = ctlSize.disabled = false;
|
||||
doc.style.fontFamily = doc.style.fontSize = "";
|
||||
btnPost.className = '';
|
||||
RichEditor.txtView = true;
|
||||
doc.focus();
|
||||
doc.innerHTML = doc.innerText;
|
||||
|
||||
Reference in New Issue
Block a user