summaryrefslogtreecommitdiff
path: root/roundcubemail/program/js/editor.js
diff options
context:
space:
mode:
authorestadtherr <estadtherr@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-02-13 03:31:05 +0000
committerestadtherr <estadtherr@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-02-13 03:31:05 +0000
commit6ca3cd1c85e6e37d57c62c84ce33a36848ed9edc (patch)
tree810afa1923fc0295c6be20c85523af52d3ca8f52 /roundcubemail/program/js/editor.js
parent8e3cb8606e219e19b8c1619ab172f4d1dec121ed (diff)
fix switching between HTML/plain composing (#1484752)
git-svn-id: https://svn.roundcube.net/trunk@1060 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js/editor.js')
-rw-r--r--roundcubemail/program/js/editor.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/roundcubemail/program/js/editor.js b/roundcubemail/program/js/editor.js
index 2f58fe0b1..98dde2eca 100644
--- a/roundcubemail/program/js/editor.js
+++ b/roundcubemail/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;
}