diff --git a/apps/common/main/lib/view/Comments.js b/apps/common/main/lib/view/Comments.js index bfad0b236..2a7c9200a 100644 --- a/apps/common/main/lib/view/Comments.js +++ b/apps/common/main/lib/view/Comments.js @@ -420,7 +420,16 @@ define([ } else if (btn.hasClass('btn-inner-edit', false)) { 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; }