From 12daf6ddf560625aca14f268994f993782125a81 Mon Sep 17 00:00:00 2001 From: alecpl Date: Tue, 5 Oct 2010 07:16:46 +0000 Subject: - Fix for Konqueror --- program/js/editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/js/editor.js b/program/js/editor.js index 85cf68a4d..d3e587b75 100644 --- a/program/js/editor.js +++ b/program/js/editor.js @@ -68,7 +68,7 @@ function rcmail_editor_callback() if (elem && elem.type=='select-one') { rcmail.change_identity(elem); // Focus previously focused element - if (rcmail.env.compose_focus_elem.id != rcmail.env.composebody) + if (rcmail.env.compose_focus_elem && rcmail.env.compose_focus_elem.id != rcmail.env.composebody) rcmail.env.compose_focus_elem.focus(); } // set tabIndex and set focus to element that was focused before -- cgit v1.2.3