summaryrefslogtreecommitdiff
path: root/roundcubemail/program/js/editor.js
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-09-02 12:30:13 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-09-02 12:30:13 +0000
commit7c2d505b63556fa18201899816d2d5b55f7bf4c9 (patch)
treeba3458671c6a88fa59044a20b2e2632ea7b13ede /roundcubemail/program/js/editor.js
parente3018dbf7884951fc804389bf3c8b3652da6c1f3 (diff)
- Fix JS error when switching off HTML editor in identity form
git-svn-id: https://svn.roundcube.net/trunk@3934 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js/editor.js')
-rw-r--r--roundcubemail/program/js/editor.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/roundcubemail/program/js/editor.js b/roundcubemail/program/js/editor.js
index 938aa82f6..48d8cfa88 100644
--- a/roundcubemail/program/js/editor.js
+++ b/roundcubemail/program/js/editor.js
@@ -116,6 +116,7 @@ function rcmail_toggle_editor(select, textAreaId, flagElement)
if (flagElement && (flag = rcube_find_object(flagElement)))
flag.value = '0';
- rcube_find_object(rcmail.env.composebody).focus();
+ if (rcmail.env.composebody)
+ rcube_find_object(rcmail.env.composebody).focus();
}
}