* Mail: fix cursor jumping at the end of textarea in compose while switching from subject

This commit is contained in:
Hadi Nategh 2017-08-22 17:53:52 +02:00
parent bbea403298
commit 6db82fbbf2

View File

@ -236,6 +236,10 @@ app.classes.mail = AppJS.extend(
this.mailvelopeAvailable(this.mailvelopeCompose);
}
var that = this;
var plainText = this.et2.getWidgetById('mail_plaintext');
// set cursor to the begining of the textarea only for first focus
if (plainText) plainText.getDOMNode().setSelectionRange(0,0);
var textAreaWidget = this.et2.getWidgetById('mail_htmltext');
this.mail_isMainWindow = false;
this.compose_fieldExpander_init();