From 7b128bc62cb7094ca641fdb6a066c53500df2be0 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Wed, 23 Aug 2017 11:46:11 +0300 Subject: [PATCH] [PE] Bug 35623. --- apps/presentationeditor/main/app/view/DocumentPreview.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/presentationeditor/main/app/view/DocumentPreview.js b/apps/presentationeditor/main/app/view/DocumentPreview.js index d0f132005a..23de00a441 100644 --- a/apps/presentationeditor/main/app/view/DocumentPreview.js +++ b/apps/presentationeditor/main/app/view/DocumentPreview.js @@ -315,6 +315,7 @@ define([ this.api.asc_registerCallback('asc_onCountPages', _.bind(this.onCountSlides, this)); this.api.asc_registerCallback('asc_onEndDemonstration', _.bind(this.onEndDemonstration, this)); this.api.asc_registerCallback('asc_onDemonstrationSlideChanged', _.bind(this.onDemonstrationSlideChanged, this)); + this.api.asc_registerCallback('asc_onDemonstrationStatus', _.bind(this.onDemonstrationStatus, this)); this.api.DemonstrationEndShowMessage(this.txtFinalMessage); } return this; @@ -352,6 +353,12 @@ define([ this.fullScreenCancel(); }, + onDemonstrationStatus: function(status) { + var iconEl = $('.icon', this.btnPlay.cmpEl); + iconEl.toggleClass('btn-pause', status=="play"); + this.btnPlay.updateHint((status=="play") ? this.txtPause : this.txtPlay); + }, + toggleFullScreen: function() { if (!document.fullscreenElement && !document.msFullscreenElement && !document.mozFullScreenElement && !document.webkitFullscreenElement) {