Fix Bug 43056

This commit is contained in:
Julia Radzhabova 2019-10-03 17:10:09 +03:00
parent 6bc1ec2648
commit de4d797a3f

View file

@ -1162,9 +1162,9 @@ define([
insertEmailToTextbox: function(str, left, right) { insertEmailToTextbox: function(str, left, right) {
var textBox = this.commentsView.getTextBox(), var textBox = this.commentsView.getTextBox(),
val = textBox.val(); val = textBox.val();
textBox.val(val.substring(0, left) + '+' + str + val.substring(right+1, val.length)); textBox.val(val.substring(0, left) + '+' + str + ' ' + val.substring(right+1, val.length));
setTimeout(function(){ setTimeout(function(){
textBox[0].selectionStart = textBox[0].selectionEnd = left + str.length + 1; textBox[0].selectionStart = textBox[0].selectionEnd = left + str.length + 2;
}, 10); }, 10);
}, },