Bug 26462: add new comment to text with other comments
This commit is contained in:
parent
ff830bb4eb
commit
934bcbc4c4
|
@ -1257,11 +1257,14 @@ define([
|
||||||
if (this.api) {
|
if (this.api) {
|
||||||
var me = this, anchor = null, date = new Date(), dialog = this.getPopover();
|
var me = this, anchor = null, date = new Date(), dialog = this.getPopover();
|
||||||
if (dialog) {
|
if (dialog) {
|
||||||
if (this.popoverComments.length) {
|
if (this.popoverComments.length) {// can add new comment to text with other comments
|
||||||
|
if (this.isDummyComment) {//don't hide previous dummy comment
|
||||||
_.delay(function() {
|
_.delay(function() {
|
||||||
dialog.commentsView.setFocusToTextBox();
|
dialog.commentsView.setFocusToTextBox();
|
||||||
}, 200);
|
}, 200);
|
||||||
return;
|
return;
|
||||||
|
} else
|
||||||
|
this.closeEditing(); // add dummy comment and close editing for existing comment
|
||||||
}
|
}
|
||||||
|
|
||||||
var user = this.userCollection.findOriginalUser(this.currentUserId);
|
var user = this.userCollection.findOriginalUser(this.currentUserId);
|
||||||
|
|
Loading…
Reference in a new issue