File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -310,18 +310,20 @@ define([
310
310
$fotoramaElement = $element . find ( '[data-gallery-role="gallery"]' ) ;
311
311
$fotoramaElement . fotorama ( config ) ;
312
312
$fotoramaElement . find ( '.fotorama__stage__frame.fotorama__active' )
313
- . one ( 'f:load' , function ( ) {
313
+ . one ( 'f:load' , function ( ) {
314
314
// Remove placeholder when main gallery image loads.
315
315
$placeholderImage . remove ( ) ;
316
316
$element
317
317
. removeClass ( '_block-content-loading' )
318
318
. css ( 'min-height' , '' ) ;
319
319
} ) ;
320
+ settings . $elementF = $fotoramaElement ;
320
321
settings . fotoramaApi = $fotoramaElement . data ( 'fotorama' ) ;
321
322
322
323
$ . extend ( true , config , this . startConfig ) ;
323
324
324
325
mainImageIndex = getMainImageIndex ( config . data ) ;
326
+
325
327
if ( mainImageIndex ) {
326
328
this . settings . fotoramaApi . show ( {
327
329
index : mainImageIndex ,
You can’t perform that action at this time.
0 commit comments