Commit 9376afd1 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Merged revision(s) r63026 from...

Merged revision(s) r63026 from AVS/Sources/TeamlabOffice/branches/TeamlabOffice_v3.0_Postgresql/OfficeWeb* Добавил недостающие файлы

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@63432 954022d7-b5bf-4e40-9824-e11837661b57
parent 5fa7f3b7
"use strict";
/* api.js
*
* Author: Alexander.Trofimov@avsmedia.net
* Date: Apr 23, 2015
*/
(
/**
* @param {jQuery} $
* @param {Window} window
* @param {undefined} undefined
*/
function ($, window, undefined) {
var asc = window["Asc"];
asc['spreadsheet_api'].prototype.asc_addComment = function (oComment) {
if (oComment.bDocument)
this.wb.cellCommentator.asc_addComment(oComment);
else {
var ws = this.wb.getWorksheet();
ws.cellCommentator.asc_addComment(oComment);
}
};
}
)(jQuery, window);
"use strict";
asc_docs_api.prototype.asc_addComment = function(AscCommentData)
{
//if ( true === CollaborativeEditing.Get_GlobalLock() )
// return;
if (null == this.WordControl.m_oLogicDocument)
return;
var CommentData = new CCommentData();
CommentData.Read_FromAscCommentData(AscCommentData);
var Comment = this.WordControl.m_oLogicDocument.Add_Comment( CommentData );
if (Comment )
return Comment.Get_Id();
};
\ No newline at end of file
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