Commit 71f6c992 authored by Boris Kocherov's avatar Boris Kocherov

import patch created Vincent Bechu @vincentB

parent 0d80d4c7
......@@ -933,9 +933,13 @@ define([
Common.Gateway.on('processmouse', _.bind(me.onProcessMouse, me));
Common.Gateway.on('refreshhistory', _.bind(me.onRefreshHistory, me));
Common.Gateway.on('save', function () {
var g = Common.Gateway;
if (me.api.isDocumentModified()) {
me.api.asc_Save();
}
if (g.props.save_defer) {
g.props.save_defer.resolve(undefined);
}
});
Common.Gateway.on('downloadas', _.bind(me.onDownloadAs, me));
......
......@@ -712,9 +712,13 @@ define([
Common.Gateway.on('processrightschange', _.bind(me.onProcessRightsChange, me));
Common.Gateway.on('processmouse', _.bind(me.onProcessMouse, me));
Common.Gateway.on('save', function () {
var g = Common.Gateway;
if (me.api.isDocumentModified()) {
me.api.asc_Save();
}
if (g.props.save_defer) {
g.props.save_defer.resolve(undefined);
}
});
Common.Gateway.on('downloadas', _.bind(me.onDownloadAs, me));
......
......@@ -716,9 +716,13 @@ define([
Common.Gateway.on('processrightschange', _.bind(me.onProcessRightsChange, me));
Common.Gateway.on('processmouse', _.bind(me.onProcessMouse, me));
Common.Gateway.on('save', function () {
var g = Common.Gateway;
if (me.api.asc_isDocumentModified()) {
me.api.asc_Save();
}
if (g.props.save_defer) {
g.props.save_defer.resolve(undefined);
}
});
Common.Gateway.on('downloadas', _.bind(me.onDownloadAs, me));
Common.Gateway.sendInfo({mode:me.appOptions.isEdit?'edit':'view'});
......
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