diff options
author | alecpl <alec@alec.pl> | 2008-04-16 08:27:58 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2008-04-16 08:27:58 +0000 |
commit | 3dd0f253339e7f8e2aef6567987709c07b5d4e7f (patch) | |
tree | 3170c2b19fe54cb7ac9a742f062616d480e42cae /program | |
parent | b49c0e8638ccd91557fb56892e110e59853d2712 (diff) |
- don't use onchange to toggle editor because of IE bug
Diffstat (limited to 'program')
-rw-r--r-- | program/js/editor.js | 21 | ||||
-rw-r--r-- | program/steps/mail/compose.inc | 2 |
2 files changed, 1 insertions, 22 deletions
diff --git a/program/js/editor.js b/program/js/editor.js index 13298cd29..7b22c9e8e 100644 --- a/program/js/editor.js +++ b/program/js/editor.js @@ -35,26 +35,6 @@ function rcmail_editor_init(skin_path, editor_lang) }); } -// Set the state of the HTML/Plain toggles based on the _is_html field value -function rcmail_set_editor_toggle_states() - { - // set the editor toggle based on the state of the editor - - var htmlFlag = document.getElementsByName('_is_html')[0]; - var toggles = document.getElementsByName('_editorSelect'); - for(var t=0; t<toggles.length; t++) - { - if (toggles[t].value == 'html') - { - toggles[t].checked = (htmlFlag.value == "1"); - } - else - { - toggles[t].checked = (htmlFlag.value == "0"); - } - } - } - // Toggle between the HTML and Plain Text editors function rcmail_toggle_editor(toggler) @@ -62,7 +42,6 @@ function rcmail_toggle_editor(toggler) var selectedEditor = toggler.value; // determine the currently displayed editor - var htmlFlag = document.getElementsByName('_is_html')[0]; var isHtml = htmlFlag.value; diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc index 9989a82b6..1189c991e 100644 --- a/program/steps/mail/compose.inc +++ b/program/steps/mail/compose.inc @@ -825,7 +825,7 @@ function rcmail_editor_selector($attrib) $selector = ''; $attrib['name'] = '_editorSelect'; - $attrib['onchange'] = 'return rcmail_toggle_editor(this)'; + $attrib['onclick'] = 'return rcmail_toggle_editor(this)'; foreach ($choices as $value => $text) { $attrib['id'] = '_' . $value; |