[PE embed] fix bug 33444, 33433
This commit is contained in:
parent
493ec48743
commit
5c801c686d
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue