From 66f12a4539f1cc0c02de9aba0bb8f6636f50f556 Mon Sep 17 00:00:00 2001 From: svncommit <devs@roundcube.net> Date: Tue, 12 Feb 2008 22:31:05 -0500 Subject: [PATCH] fix switching between HTML/plain composing (#1484752) --- program/js/editor.js | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/program/js/editor.js b/program/js/editor.js index 2f58fe0..98dde2e 100644 --- a/program/js/editor.js +++ b/program/js/editor.js @@ -63,9 +63,10 @@ // determine the currently displayed editor var htmlFlag = document.getElementsByName('_is_html')[0]; - var currentEditor = htmlFlag.value; + var isHtml = htmlFlag.value; - if (selectedEditor == currentEditor) + if (((selectedEditor == 'plain') && (isHtml == "0")) || + ((selectedEditor == 'html') && (isHtml == "1"))) { return; } -- Gitblit v1.9.1