summaryrefslogtreecommitdiff
path: root/roundcubemail/program/js/app.js
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-10-24 13:31:49 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-10-24 13:31:49 +0000
commit99eb2b96a4570bbb4277ffd8f249c0b2d062dd70 (patch)
tree86086a079de6ef1645e7ff050d647f8d7145b099 /roundcubemail/program/js/app.js
parent2cd32be45ba9c0d6afdab085523e0df3272e3dcf (diff)
- don't call focus() on html editor (#1486238)
git-svn-id: https://svn.roundcube.net/trunk@3056 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js/app.js')
-rw-r--r--roundcubemail/program/js/app.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js
index 18b74fd57..f98cf5f80 100644
--- a/roundcubemail/program/js/app.js
+++ b/roundcubemail/program/js/app.js
@@ -466,6 +466,7 @@ function rcube_webmail()
var input_to = $("[name='_to']");
var input_subject = $("input[name='_subject']");
var input_message = $("[name='_message']").get(0);
+ var html_mode = $("input[name='_is_html']").val() == '1';
// init live search events
this.init_address_input_events(input_to);
@@ -474,7 +475,7 @@ function rcube_webmail()
// add signature according to selected identity
if (input_from.attr('type') == 'select-one' && $("input[name='_draft_saveid']").val() == ''
- && $("input[name='_is_html']").val() != '1') { // if we have HTML editor, signature is added in callback
+ && !html_mode) { // if we have HTML editor, signature is added in callback
this.change_identity(input_from[0]);
}
@@ -482,7 +483,7 @@ function rcube_webmail()
input_to.focus();
else if (input_subject.val() == '')
input_subject.focus();
- else if (input_message)
+ else if (input_message && !html_mode)
input_message.focus();
// get summary of all field values