Commit eb0ee7af authored by Oleg Korshul's avatar Oleg Korshul

minimizator bug

parent 6f7d50e4
......@@ -759,22 +759,23 @@ function CEditorPage(api)
});
document.getElementById("dem_id_end").onclick = function() {
this.elementReporter1 = document.getElementById("dem_id_end");
this.elementReporter1.onclick = function() {
window.editor.EndDemonstration();
};
document.getElementById("dem_id_prev").onclick = function() {
this.elementReporter2 = document.getElementById("dem_id_prev");
this.elementReporter2.onclick = function() {
window.editor.DemonstrationPrevSlide();
};
document.getElementById("dem_id_next").onclick = function() {
this.elementReporter3 = document.getElementById("dem_id_next");
this.elementReporter3.onclick = function() {
window.editor.DemonstrationNextSlide();
};
document.getElementById("dem_id_play").onclick = function() {
this.elementReporter4 = document.getElementById("dem_id_play");
this.elementReporter4.onclick = function() {
var _wordControl = window.editor.WordControl;
var _isNowPlaying = _wordControl.DemonstrationManager.IsPlayMode;
......@@ -808,7 +809,8 @@ function CEditorPage(api)
}
};
document.getElementById("dem_id_reset").onclick = function() {
this.elementReporter5 = document.getElementById("dem_id_reset");
this.elementReporter5.onclick = function() {
var _wordControl = window.editor.WordControl;
_wordControl.reporterTimerAdd = 0;
......@@ -817,7 +819,8 @@ function CEditorPage(api)
};
document.getElementById("dem_id_pointer").onclick = function() {
this.elementReporter6 = document.getElementById("dem_id_pointer");
this.elementReporter6.onclick = function() {
var _wordControl = window.editor.WordControl;
var _elem1 = document.getElementById("dem_id_pointer");
......@@ -851,6 +854,10 @@ function CEditorPage(api)
window.editor.sync_endDemonstration();
};
window.addEventListener("beforeunload", function (e) {
window.editor.sync_endDemonstration();
});
window.onkeydown = this.onKeyDown;
window.onkeyup = this.onKeyUp;
......
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