Commit 8fdfca70 authored by Oleg Korshul's avatar Oleg Korshul

.

parent 293491a6
......@@ -1259,6 +1259,8 @@
baseEditorsApi.prototype.asc_addSignatureLine = function (sGuid, sSigner, sSigner2, sEmail) {
};
baseEditorsApi.prototype.asc_getAllSignatures = function () {
};
// signatures
......@@ -1270,6 +1272,37 @@
return this.asc_addSignatureLine(guid(), _obj.asc_getSigner1(), _obj.asc_getSigner2(), _obj.asc_getEmail());
};
baseEditorsApi.prototype.asc_getAllRequestSignatures = function()
{
var _sigs = this.asc_getAllSignatures();
var _sigs_ret = [];
var _found;
for (var i = _sigs.length - 1; i >= 0; i--)
{
var _sig = _sigs[i];
_found = false;
for (var j = this.signatures.length - 1; j >= 0; j--)
{
if (this.signatures[j].guid == _sig.guid)
{
_found = true;
break;
}
}
if (!_found)
{
var _add_sig = new AscCommon.asc_CSignarureLine();
_add_sig.guid = _sig.guid;
_add_sig.signer1 = _sig.signer1;
_add_sig.signer2 = _sig.signer2;
_add_sig.email = _sig.email;
}
}
};
baseEditorsApi.prototype.asc_Sign = function(guid)
{
if (window["AscDesktopEditor"])
......
......@@ -8263,9 +8263,7 @@ background-repeat: no-repeat;\
asc_docs_api.prototype["asc_OnHideContextMenu"] = asc_docs_api.prototype.asc_OnHideContextMenu;
asc_docs_api.prototype["asc_OnShowContextMenu"] = asc_docs_api.prototype.asc_OnShowContextMenu;
asc_docs_api.prototype["asc_addSignatureLine"] = asc_docs_api.prototype.asc_addSignatureLine;
asc_docs_api.prototype["asc_getAllSignatures"] = asc_docs_api.prototype.asc_getAllSignatures;
asc_docs_api.prototype["asc_getAllRequestSignatures"] = asc_docs_api.prototype.asc_getAllRequestSignatures;
// signatures
asc_docs_api.prototype["asc_AddSignarureLine2"] = asc_docs_api.prototype.asc_AddSignarureLine2;
......
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