File tree Expand file tree Collapse file tree 6 files changed +9
-9
lines changed
Catalog/view/frontend/web/js/product/storage
ConfigurableProduct/view/adminhtml
templates/product/configurable/affected-attribute-set-selector
dev/tests/js/jasmine/tests/lib/mage/backend Expand file tree Collapse file tree 6 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -228,7 +228,7 @@ define([
228
228
this . updateRequestConfig . data = queryBuilder . buildQuery ( prepareAjaxParams ) ;
229
229
this . updateRequestConfig . data [ 'store_id' ] = store ;
230
230
this . updateRequestConfig . data [ 'currency_code' ] = currency ;
231
- $ . ajax ( this . updateRequestConfig ) . success ( function ( data ) {
231
+ $ . ajax ( this . updateRequestConfig ) . done ( function ( data ) {
232
232
this . request = { } ;
233
233
this . providerHandler ( getParsedDataFromServer ( data ) ) ;
234
234
} . bind ( this ) ) ;
Original file line number Diff line number Diff line change 89
89
showLoader: true,
90
90
context: $form
91
91
})
92
- .success (function (data) {
92
+ .done (function (data) {
93
93
if (!data.error) {
94
94
setAttributeSetId(data.id);
95
95
closeDialogAndProcessForm($form);
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ define([
95
95
type : 'GET' ,
96
96
url : this . _buildGridUrl ( filterData ) ,
97
97
context : $ ( 'body' )
98
- } ) . success ( function ( data ) {
98
+ } ) . done ( function ( data ) {
99
99
bootstrap ( JSON . parse ( data ) ) ;
100
100
} ) ;
101
101
} ,
Original file line number Diff line number Diff line change @@ -492,7 +492,7 @@ define([
492
492
dataType : 'json' ,
493
493
showLoader : true ,
494
494
context : this
495
- } ) . success ( function ( data ) {
495
+ } ) . done ( function ( data ) {
496
496
if ( ! data . error ) {
497
497
this . set (
498
498
'skeletonAttributeSet' ,
@@ -507,7 +507,7 @@ define([
507
507
}
508
508
509
509
return false ;
510
- } ) . error ( function ( xhr ) {
510
+ } ) . fail ( function ( xhr ) {
511
511
if ( xhr . statusText === 'abort' ) {
512
512
return ;
513
513
}
Original file line number Diff line number Diff line change @@ -101,8 +101,8 @@ define([
101
101
102
102
expect ( suggestInstance . dropdown . hasClass ( 'wrapper-test' ) ) . toBe ( true ) ;
103
103
expect ( suggestInstance . dropdown . is ( ':hidden' ) ) . toBe ( true ) ;
104
- expect ( suggestInstance . element . closest ( '.test-input-wrapper' ) . size ( ) ) . toBeGreaterThan ( 0 ) ;
105
- expect ( suggestInstance . element . closest ( '.' + options . className ) . size ( ) ) . toBeGreaterThan ( 0 ) ;
104
+ expect ( suggestInstance . element . closest ( '.test-input-wrapper' ) . length ) . toBeGreaterThan ( 0 ) ;
105
+ expect ( suggestInstance . element . closest ( '.' + options . className ) . length ) . toBeGreaterThan ( 0 ) ;
106
106
expect ( suggestInstance . element . attr ( 'autocomplete' ) ) . toBe ( 'off' ) ;
107
107
108
108
options . appendMethod = 'before' ;
Original file line number Diff line number Diff line change @@ -531,12 +531,12 @@ define([
531
531
that . element . addClass ( that . options . loadingClass ) ;
532
532
}
533
533
that . content . attr ( 'aria-busy' , 'true' ) ;
534
- that . xhr . success ( function ( response ) {
534
+ that . xhr . done ( function ( response ) {
535
535
setTimeout ( function ( ) {
536
536
that . content . html ( response ) ;
537
537
} , 1 ) ;
538
538
} ) ;
539
- that . xhr . complete ( function ( jqXHR , status ) {
539
+ that . xhr . always ( function ( jqXHR , status ) {
540
540
setTimeout ( function ( ) {
541
541
if ( status === 'abort' ) {
542
542
that . content . stop ( false , true ) ;
You can’t perform that action at this time.
0 commit comments