[PE] Fix Bug 49233
This commit is contained in:
parent
04517b0477
commit
69375d0c00
|
@ -190,6 +190,7 @@ define([
|
|||
this.api.asc_registerCallback('asc_onHideComment', _.bind(this.onApiHideComment, this));
|
||||
this.api.asc_registerCallback('asc_onUpdateCommentPosition', _.bind(this.onApiUpdateCommentPosition, this));
|
||||
this.api.asc_registerCallback('asc_onDocumentPlaceChanged', _.bind(this.onDocumentPlaceChanged, this));
|
||||
this.api.asc_registerCallback('asc_onDeleteComment', _.bind(this.onDeleteComment, this)); // only for PE, when del or ctrl+x pressed
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -1039,6 +1040,12 @@ define([
|
|||
}
|
||||
},
|
||||
|
||||
onDeleteComment: function (id, comment) {
|
||||
if (this.api) {
|
||||
this.api.asc_RemoveAllComments(!this.mode.canDeleteComments, true);// 1 param = true if remove only my comments, 2 param - remove current comments
|
||||
}
|
||||
},
|
||||
|
||||
// internal
|
||||
|
||||
updateComments: function (needRender, disableSort, loadText) {
|
||||
|
|
Loading…
Reference in a new issue