Commit 466af5da authored by Oleg Korshul's avatar Oleg Korshul

send signature events

parent acee7e5b
......@@ -262,6 +262,19 @@ window["DesktopOfflineAppDocumentSignatures"] = function(_json)
_editor.signatures.push(_add_sign);
}
_editor.asc_registerCallback("asc_onAddSignature", function(guid) {
var _api = window["Asc"]["editor"] ? window["Asc"]["editor"] : window.editor;
_api.sendEvent("asc_onUpdateSignatures", _api.asc_getSignatures(), _api.asc_getRequestSignatures());
});
_editor.asc_registerCallback("asc_onRemoveSignature", function(guid) {
var _api = window["Asc"]["editor"] ? window["Asc"]["editor"] : window.editor;
_api.sendEvent("asc_onUpdateSignatures", _api.asc_getSignatures(), _api.asc_getRequestSignatures());
});
};
// меняем среду
......
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