diff options
author | svncommit <devs@roundcube.net> | 2008-02-13 03:31:05 +0000 |
---|---|---|
committer | svncommit <devs@roundcube.net> | 2008-02-13 03:31:05 +0000 |
commit | 66f12a4539f1cc0c02de9aba0bb8f6636f50f556 (patch) | |
tree | e5626fc890da3e5161d2f192142d4c9252d69c1d /program/js/editor.js | |
parent | 2f93b031b2b72ec9be2255c387cae7c7713c2ff7 (diff) |
fix switching between HTML/plain composing (#1484752)
Diffstat (limited to 'program/js/editor.js')
-rw-r--r-- | 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 2f58fe0b1..98dde2eca 100644 --- a/program/js/editor.js +++ b/program/js/editor.js @@ -63,9 +63,10 @@ function rcmail_toggle_editor(toggler) // 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; } |