mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
Try to set focus back to plain text area when replying to a plain text mail
This commit is contained in:
parent
ba8c5101ac
commit
60aa0035a7
@ -361,7 +361,13 @@ app.classes.mail = AppJS.extend(
|
|||||||
// focus
|
// focus
|
||||||
jQuery(plainText.getDOMNode()).focus();
|
jQuery(plainText.getDOMNode()).focus();
|
||||||
// get the cursor to the top of the textarea
|
// get the cursor to the top of the textarea
|
||||||
if (typeof plainText.getDOMNode().setSelectionRange !='undefined' && !jQuery(plainText.getDOMNode()).is(":hidden")) plainText.getDOMNode().setSelectionRange(0,0);
|
if (typeof plainText.getDOMNode().setSelectionRange !='undefined' && !jQuery(plainText.getDOMNode()).is(":hidden"))
|
||||||
|
{
|
||||||
|
setTimeout(function(){
|
||||||
|
plainText.getDOMNode().setSelectionRange(0,0)
|
||||||
|
plainText.focus();
|
||||||
|
}, 2000);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if(textAreaWidget && textAreaWidget.tinymce)
|
else if(textAreaWidget && textAreaWidget.tinymce)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user