Commit 5e5d3429 authored by Oleg Korshul's avatar Oleg Korshul

.

parent 845824c5
......@@ -6293,13 +6293,17 @@ background-repeat: no-repeat;\
AscCommon.baseEditorsApi.prototype._onEndLoadSdk.call(this);
var _onbeforeunload = function() {
window.editor.EndDemonstration();
};
if ( window.attachEvent )
window.attachEvent('onbeforeunload', _onbeforeunload);
else
window.addEventListener('beforeunload', _onbeforeunload, false);
if (this.isReporterMode)
{
var _onbeforeunload = function ()
{
window.editor.EndDemonstration();
};
if (window.attachEvent)
window.attachEvent('onbeforeunload', _onbeforeunload);
else
window.addEventListener('beforeunload', _onbeforeunload, false);
}
};
asc_docs_api.prototype._downloadAs = function(filetype, actionType, options)
......
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