From 7c2d505b63556fa18201899816d2d5b55f7bf4c9 Mon Sep 17 00:00:00 2001 From: alec Date: Thu, 2 Sep 2010 12:30:13 +0000 Subject: - 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 --- roundcubemail/program/js/editor.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); } } -- cgit v1.2.3