Commit 09f46ed7 authored by Oleg Korshul's avatar Oleg Korshul

.

parent 82c8a808
......@@ -279,8 +279,8 @@ window["DesktopOfflineAppDocumentSignatures"] = function(_json)
window["OnNativeReturnCallback"] = function(name, obj)
{
console.log(name);
console.log(obj);
var _api = window["Asc"]["editor"] ? window["Asc"]["editor"] : window.editor;
_api.sendEvent(name, obj);
};
// меняем среду
......
......@@ -1305,16 +1305,28 @@
return _sigs_ret;
};
baseEditorsApi.prototype.asc_Sign = function(guid)
baseEditorsApi.prototype.asc_Sign = function(id, guid)
{
if (window["AscDesktopEditor"])
window["AscDesktopEditor"]["Sign"](guid);
window["AscDesktopEditor"]["Sign"](id, guid);
};
baseEditorsApi.prototype.asc_ViewSign = function(id)
baseEditorsApi.prototype.asc_ViewCertificate = function(id)
{
if (window["AscDesktopEditor"])
window["AscDesktopEditor"]["ViewCertificate"](guid);
window["AscDesktopEditor"]["ViewCertificate"](id);
};
baseEditorsApi.prototype.asc_SelectCertificate = function()
{
if (window["AscDesktopEditor"])
window["AscDesktopEditor"]["SelectCertificate"]();
};
baseEditorsApi.prototype.asc_GetDefaultCertificate = function()
{
if (window["AscDesktopEditor"])
window["AscDesktopEditor"]["GetDefaultCertificate"]();
};
baseEditorsApi.prototype.asc_getSignatures = function()
......
......@@ -8260,7 +8260,9 @@ background-repeat: no-repeat;\
// signatures
asc_docs_api.prototype["asc_AddSignatureLine2"] = asc_docs_api.prototype.asc_AddSignatureLine2;
asc_docs_api.prototype["asc_Sign"] = asc_docs_api.prototype.asc_Sign;
asc_docs_api.prototype["asc_ViewSign"] = asc_docs_api.prototype.asc_ViewSign;
asc_docs_api.prototype["asc_ViewCertificate"] = asc_docs_api.prototype.asc_ViewCertificate;
asc_docs_api.prototype["asc_SelectCertificate"] = asc_docs_api.prototype.asc_SelectCertificate;
asc_docs_api.prototype["asc_GetDefaultCertificate"] = asc_docs_api.prototype.asc_GetDefaultCertificate;
asc_docs_api.prototype["asc_getSignatures"] = asc_docs_api.prototype.asc_getSignatures;
CDocInfoProp.prototype['get_PageCount'] = CDocInfoProp.prototype.get_PageCount;
......
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