diff options
author | Aleksander Machniak <alec@alec.pl> | 2015-04-16 10:55:32 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2015-04-16 10:55:32 +0200 |
commit | 09225a41ec7135031a4c0304b8dcdccd45904939 (patch) | |
tree | d751cfdae71b8c43bee39f785b890ead89f8d812 /program/js/app.js | |
parent | 489409f30f2495a1dff43ead9d201a4b28cdbe82 (diff) |
Add option to place signature at bottom of the quoted text even in top-posting mode [sig_below]
Diffstat (limited to 'program/js/app.js')
-rw-r--r-- | program/js/app.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/program/js/app.js b/program/js/app.js index 64fd548c9..b6b4d319c 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -3384,14 +3384,16 @@ function rcube_webmail() if (!html_mode) { pos = this.env.top_posting ? 0 : input_message.value.length; - this.set_caret_pos(input_message, pos); // add signature according to selected identity - // if we have HTML editor, signature is added in callback + // if we have HTML editor, signature is added in a callback if (input_from.prop('type') == 'select-one') { this.change_identity(input_from[0]); } + // set initial cursor position + this.set_caret_pos(input_message, pos); + // scroll to the bottom of the textarea (#1490114) if (pos) { $(input_message).scrollTop(input_message.scrollHeight); |