Commit 5c801c68 authored by Maxim Kadushkin's avatar Maxim Kadushkin

[PE embed] fix bug 33444, 33433

parent 493ec487
......@@ -409,18 +409,15 @@ var ApplicationController = new(function(){
var isplaymode;
function onPlayStart(e) {
if ( !isplaymode ) {
if ( isplaymode === undefined ) {
$('#box-preview').show();
api.StartDemonstration('id-preview', currentPage);
} else
api.DemonstrationPlay();
$('#btn-play button').addClass('pause');
$('#box-preview').show();
api.StartDemonstration('id-preview', currentPage);
} else {
$('#btn-play button').removeClass('pause');
api.DemonstrationPause();
isplaymode == 'play' ?
api.DemonstrationPause() : api.DemonstrationPlay();
}
isplaymode = !isplaymode;
isplaymode != 'play' ? ($('#btn-play button').addClass('pause'), isplaymode = 'play') :
($('#btn-play button').removeClass('pause'), isplaymode = 'pause');
}
function onPlayStop() {
......
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