@@ -396,8 +396,9 @@ define([
396
396
$ ( this . element ) . on ( 'fotorama:showend' , $ . proxy ( function ( evt , fotoramaData ) {
397
397
$ ( fotoramaData . activeFrame . $stageFrame ) . removeAttr ( 'href' ) ;
398
398
} , this ) ) ;
399
-
400
- this . _startPrepareForPlayer ( e , fotorama ) ;
399
+ this . _checkForVideo ( e , fotorama , - 1 ) ;
400
+ this . _checkForVideo ( e , fotorama , 0 ) ;
401
+ this . _checkForVideo ( e , fotorama , 1 ) ;
401
402
} ,
402
403
403
404
/**
@@ -516,8 +517,10 @@ define([
516
517
$image . find ( '.magnify-lens' ) . remove ( ) ;
517
518
$image . on ( 'click tap' , function ( ) {
518
519
if ( $ ( this ) . hasClass ( 'video-unplayed' ) && $ ( this ) . find ( 'iframe' ) . length === 0 ) {
519
- $ ( '.fotorama__arr--next' ) . hide ( ) ;
520
- $ ( '.fotorama__arr--prev' ) . hide ( ) ;
520
+ if ( $ ( '.fotorama-item' ) . data ( 'fotorama' ) . options . arrows ) {
521
+ $ ( '.fotorama__arr--next' ) . hide ( ) ;
522
+ $ ( '.fotorama__arr--prev' ) . hide ( ) ;
523
+ }
521
524
522
525
$ ( this ) . removeClass ( 'video-unplayed' ) ;
523
526
$ ( this ) . find ( '.' + PV ) . productVideoLoader ( ) ;
@@ -563,23 +566,23 @@ define([
563
566
clearInterval ( waitForFroogaloop ) ;
564
567
fotorama . requestFullScreen ( ) ;
565
568
$ ( this . element ) . data ( 'fotorama' ) . activeFrame . $stageFrame [ 0 ] . click ( ) ;
566
- $ ( '.fotorama__fullscreen-icon' ) . css ( {
569
+ /* $('.fotorama__fullscreen-icon').css({
567
570
opacity: '1',
568
571
visibility: 'visible',
569
572
display: 'block'
570
- } ) ;
573
+ });*/
571
574
this . Base = false ;
572
575
}
573
576
} , this ) , 50 ) ;
574
577
} else { //if not a vimeo - play it immediately with a little lag in case for fotorama fullscreen
575
578
setTimeout ( $ . proxy ( function ( ) {
576
579
fotorama . requestFullScreen ( ) ;
577
580
$ ( this . element ) . data ( 'fotorama' ) . activeFrame . $stageFrame [ 0 ] . click ( ) ;
578
- $ ( '.fotorama__fullscreen-icon' ) . css ( {
581
+ /* $('.fotorama__fullscreen-icon').css({
579
582
opacity: '1',
580
583
visibility: 'visible',
581
584
display: 'block'
582
- } ) ;
585
+ });*/
583
586
this . Base = false ;
584
587
} , this ) , 50 ) ;
585
588
}
@@ -628,8 +631,10 @@ define([
628
631
$ ( this ) . remove ( ) ;
629
632
$item . append ( cloneVideoDiv ) ;
630
633
$item . addClass ( 'video-unplayed' ) ;
631
- $ ( '.fotorama__arr--next' ) . show ( ) ;
632
- $ ( '.fotorama__arr--prev' ) . show ( ) ;
634
+ if ( $ ( '.fotorama-item' ) . data ( 'fotorama' ) . options . arrows ) {
635
+ $ ( '.fotorama__arr--next' ) . show ( ) ;
636
+ $ ( '.fotorama__arr--prev' ) . show ( ) ;
637
+ }
633
638
self . _hideCloseVideo ( ) ;
634
639
635
640
} ) ;
0 commit comments