summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-09-02 12:30:13 +0000
committeralecpl <alec@alec.pl>2010-09-02 12:30:13 +0000
commitbdf6ded0a6f8c4ddd9d8761beba9029a1e86f354 (patch)
tree4ef1acd58d376aff2c461272749d84397b8ccf5b
parentd11fb20061f4942e9e24b986e0801ff182ae4a7d (diff)
- Fix JS error when switching off HTML editor in identity form
-rw-r--r--program/js/editor.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/program/js/editor.js b/program/js/editor.js
index 938aa82f6..48d8cfa88 100644
--- a/program/js/editor.js
+++ b/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();
}
}