File tree Expand file tree Collapse file tree 1 file changed +17
-15
lines changed
app/code/Magento/PageBuilder/view/frontend/web/js Expand file tree Collapse file tree 1 file changed +17
-15
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ requirejs([
9
9
'jquery' ,
10
10
'Magento_PageBuilder/js/utils/map' ,
11
11
'jquery/ui' ,
12
- 'mage/tabs' ,
13
12
'slick' ,
14
13
'jarallax'
15
14
] , function ( $ , GoogleMap ) {
@@ -105,20 +104,23 @@ requirejs([
105
104
showButtonOnHover ( $ ( 'div[data-role="slide"][data-show-button="hover"] > a' ) , '.pagebuilder-slide-button' ) ;
106
105
107
106
$ ( 'div[data-role="tabs"]' ) . each ( function ( index , element ) {
108
- $ ( element ) . tabs ( {
109
- active : $ ( element ) . data ( 'active-tab' ) || 0 ,
110
- create :
111
-
112
- /**
113
- * Adjust the margin bottom of the navigation to correctly display the active tab
114
- */
115
- function ( ) {
116
- var borderWidth = parseInt ( $ ( this ) . find ( '.tabs-content' ) . css ( 'borderWidth' ) . toString ( ) , 10 ) ;
117
-
118
- $ ( this ) . find ( '.tabs-navigation' ) . css ( 'marginBottom' , - borderWidth ) ;
119
- $ ( this ) . find ( '.tabs-navigation li:not(:first-child)' ) . css ( 'marginLeft' , - borderWidth ) ;
120
- }
121
- } ) ;
107
+ $ . ui . tabs (
108
+ {
109
+ active : $ ( element ) . data ( 'active-tab' ) || 0 ,
110
+ create :
111
+
112
+ /**
113
+ * Adjust the margin bottom of the navigation to correctly display the active tab
114
+ */
115
+ function ( ) {
116
+ var borderWidth = parseInt ( $ ( this ) . find ( '.tabs-content' ) . css ( 'borderWidth' ) . toString ( ) , 10 ) ;
117
+
118
+ $ ( this ) . find ( '.tabs-navigation' ) . css ( 'marginBottom' , - borderWidth ) ;
119
+ $ ( this ) . find ( '.tabs-navigation li:not(:first-child)' ) . css ( 'marginLeft' , - borderWidth ) ;
120
+ }
121
+ } ,
122
+ $ ( element )
123
+ ) ;
122
124
} ) ;
123
125
} ) ;
124
126
You can’t perform that action at this time.
0 commit comments