mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-25 16:59:13 +08:00
[PE] Bug 35623.
This commit is contained in:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user