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