File tree Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change 42
42
this . headerPresets ( ) ;
43
43
44
44
this . extraNavigation ( ) ;
45
-
45
+
46
46
47
47
this . showHideBuilder ( ) ;
48
48
this . showHideBuilderTop ( ) ;
359
359
360
360
$ ( document ) . on ( 'click' , '.botiga-bhfb-area:not(.bhfb-available-components)' , function ( e ) {
361
361
362
- const
362
+ const
363
363
popup = _this . currentBuilder . find ( '#botiga-bhfb-elements' ) ,
364
364
rect = $ ( this ) [ 0 ] . getBoundingClientRect ( ) ,
365
365
row = $ ( this ) . data ( 'bhfb-row' ) ;
366
-
366
+
367
367
setTimeout ( function ( ) {
368
368
popup . css ( 'top' , 0 ) ;
369
369
popup . css ( 'left' , rect . left ) ;
389
389
} ) ;
390
390
391
391
$ ( '#customize-preview iframe' ) . on ( 'mouseup' , function ( e ) {
392
- if ( ! _this . currentBuilder ) {
393
- return false ;
392
+ if ( _this . currentBuilder ) {
393
+ _this . closeElementsPopup ( e ) ;
394
394
}
395
-
396
- _this . closeElementsPopup ( e ) ;
397
395
} ) ;
398
396
399
397
$ ( document ) . on ( 'mouseup' , function ( e ) {
400
- if ( ! _this . currentBuilder ) {
401
- return false ;
398
+ if ( _this . currentBuilder ) {
399
+ _this . closeElementsPopup ( e ) ;
402
400
}
403
-
404
- _this . closeElementsPopup ( e ) ;
405
401
} ) ;
406
402
407
403
} ,
You can’t perform that action at this time.
0 commit comments