Commit 2d751400 authored by Oleg Korshul's avatar Oleg Korshul

.

parent fd037cd8
...@@ -854,10 +854,6 @@ function CEditorPage(api) ...@@ -854,10 +854,6 @@ function CEditorPage(api)
window.editor.sync_endDemonstration(); window.editor.sync_endDemonstration();
}; };
window.addEventListener("beforeunload", function (e) {
window.editor.sync_endDemonstration();
});
window.onkeydown = this.onKeyDown; window.onkeydown = this.onKeyDown;
window.onkeyup = this.onKeyUp; window.onkeyup = this.onKeyUp;
...@@ -869,6 +865,16 @@ function CEditorPage(api) ...@@ -869,6 +865,16 @@ function CEditorPage(api)
window.addEventListener('message', this.m_oApi.DemonstrationToReporterMessages, false); window.addEventListener('message', this.m_oApi.DemonstrationToReporterMessages, false);
} }
} }
else
{
if (window.addEventListener)
{
window.addEventListener("beforeunload", function (e)
{
window.editor.EndDemonstration();
});
}
}
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------
this.m_oDrawingDocument.TargetHtmlElement = document.getElementById('id_target_cursor'); this.m_oDrawingDocument.TargetHtmlElement = document.getElementById('id_target_cursor');
...@@ -2876,6 +2882,12 @@ function CEditorPage(api) ...@@ -2876,6 +2882,12 @@ function CEditorPage(api)
{ {
this.m_oBoundsController.ClearNoAttack(); this.m_oBoundsController.ClearNoAttack();
this.onTimerScroll_sync(); this.onTimerScroll_sync();
if (this.m_bIsRuler)
{
this.UpdateHorRulerBack(true);
this.UpdateVerRulerBack(true);
}
return; return;
} }
} }
...@@ -2885,6 +2897,12 @@ function CEditorPage(api) ...@@ -2885,6 +2897,12 @@ function CEditorPage(api)
{ {
this.m_oBoundsController.ClearNoAttack(); this.m_oBoundsController.ClearNoAttack();
this.onTimerScroll_sync(); this.onTimerScroll_sync();
if (this.m_bIsRuler)
{
this.UpdateHorRulerBack(true);
this.UpdateVerRulerBack(true);
}
return; return;
} }
} }
......
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