Commit fd360d8c authored by Alexander.Trofimov's avatar Alexander.Trofimov

fix bug 32402

parent a601115b
...@@ -1281,5 +1281,6 @@ CComment.prototype = ...@@ -1281,5 +1281,6 @@ CComment.prototype =
//--------------------------------------------------------export---------------------------------------------------- //--------------------------------------------------------export----------------------------------------------------
window['AscCommon'] = window['AscCommon'] || {}; window['AscCommon'] = window['AscCommon'] || {};
window['AscCommon'].CCommentData = CCommentData;
window['AscCommon'].CComment = CComment; window['AscCommon'].CComment = CComment;
window['AscCommon'].ParaComment = ParaComment; window['AscCommon'].ParaComment = ParaComment;
...@@ -3646,7 +3646,7 @@ asc_docs_api.prototype.asc_changeComment = function(Id, AscCommentData) ...@@ -3646,7 +3646,7 @@ asc_docs_api.prototype.asc_changeComment = function(Id, AscCommentData)
//if ( false === this.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(changestype_MoveComment, Id ) ) //if ( false === this.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(changestype_MoveComment, Id ) )
{ {
var CommentData = new CCommentData(); var CommentData = new AscCommon.CCommentData();
CommentData.Read_FromAscCommentData(AscCommentData); CommentData.Read_FromAscCommentData(AscCommentData);
this.WordControl.m_oLogicDocument.Change_Comment( Id, CommentData ); this.WordControl.m_oLogicDocument.Change_Comment( Id, CommentData );
......
...@@ -1450,5 +1450,6 @@ ParaComment.prototype.Reject_RevisionChanges = function(Type, bAll){}; ...@@ -1450,5 +1450,6 @@ ParaComment.prototype.Reject_RevisionChanges = function(Type, bAll){};
//--------------------------------------------------------export---------------------------------------------------- //--------------------------------------------------------export----------------------------------------------------
window['AscCommon'] = window['AscCommon'] || {}; window['AscCommon'] = window['AscCommon'] || {};
window['AscCommon'].CCommentData = CCommentData;
window['AscCommon'].CComment = CComment; window['AscCommon'].CComment = CComment;
window['AscCommon'].ParaComment = ParaComment; window['AscCommon'].ParaComment = ParaComment;
...@@ -5079,7 +5079,7 @@ asc_docs_api.prototype.asc_changeComment = function(Id, AscCommentData) ...@@ -5079,7 +5079,7 @@ asc_docs_api.prototype.asc_changeComment = function(Id, AscCommentData)
if ( false === this.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(changestype_None, { Type : AscCommon.changestype_2_Comment, Id : Id } ) ) if ( false === this.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(changestype_None, { Type : AscCommon.changestype_2_Comment, Id : Id } ) )
{ {
var CommentData = new CCommentData(); var CommentData = new AscCommon.CCommentData();
CommentData.Read_FromAscCommentData(AscCommentData); CommentData.Read_FromAscCommentData(AscCommentData);
this.WordControl.m_oLogicDocument.Create_NewHistoryPoint(AscDFH.historydescription_Document_ChangeComment); this.WordControl.m_oLogicDocument.Create_NewHistoryPoint(AscDFH.historydescription_Document_ChangeComment);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment