[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;
|
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() {
|
||||||
|
|
Loading…
Reference in a new issue