Fix Bug 36666.
This commit is contained in:
parent
8ab7153b2a
commit
814c68c7ce
|
@ -420,7 +420,16 @@ define([
|
||||||
} else if (btn.hasClass('btn-inner-edit', false)) {
|
} else if (btn.hasClass('btn-inner-edit', false)) {
|
||||||
|
|
||||||
if (record.get('dummy')) {
|
if (record.get('dummy')) {
|
||||||
t.fireEvent('comment:addDummyComment', [this.getActiveTextBoxVal()]);
|
var commentVal = this.getActiveTextBoxVal();
|
||||||
|
if (commentVal.length>0)
|
||||||
|
t.fireEvent('comment:addDummyComment', [commentVal]);
|
||||||
|
else {
|
||||||
|
var text = me.$window.find('textarea:not(.user-message)');
|
||||||
|
if (text && text.length)
|
||||||
|
setTimeout(function(){
|
||||||
|
text.focus();
|
||||||
|
}, 10);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue