From a3644638aaf0418598196a870204e0b632a4c8ad Mon Sep 17 00:00:00 2001
From: Thomas Bruederli <thomas@roundcube.net>
Date: Fri, 17 Apr 2015 06:28:40 -0400
Subject: [PATCH] Allow preference sections to define CSS class names

---
 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 64fd548..b6b4d31 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -3384,14 +3384,16 @@
 
     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);

--
Gitblit v1.9.1