Commit 4c29a1cb authored by Boris Kocherov's avatar Boris Kocherov

gadget: clear onlyoffice modification state on save

parent 6b7162bf
/*global window, rJS, RSVP, DocsAPI, console, document, /*global window, rJS, RSVP, DocsAPI, console, document,
Common, require, jIO, URL, FileReader, atob, ArrayBuffer, Common, require, jIO, URL, FileReader, atob, ArrayBuffer,
Uint8Array, XMLHttpRequest, Blob, Rusha, define*/ Uint8Array, XMLHttpRequest, Blob, Rusha, define,
TextDecoder, DesktopOfflineAppDocumentEndSave*/
/*jslint nomen: true, maxlen:80, indent:2*/ /*jslint nomen: true, maxlen:80, indent:2*/
"use strict"; "use strict";
if (Common === undefined) { if (Common === undefined) {
...@@ -523,6 +524,10 @@ DocsAPI.DocEditor.version = function () { ...@@ -523,6 +524,10 @@ DocsAPI.DocEditor.version = function () {
.push(function (evt) { .push(function (evt) {
var data = {}; var data = {};
data[g.props.key] = evt.target.result; data[g.props.key] = evt.target.result;
// TODO it should be run on state change
// if fail send int:1
// it clear modification state onlyoffice
DesktopOfflineAppDocumentEndSave(0);
return data; return data;
}); });
}); });
......
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