Merge pull request #16660 from woocommerce/fix/16658
Avoid full refresh if user cancels a bulk action
This commit is contained in:
commit
ec36acadfa
|
@ -721,6 +721,8 @@ jQuery( function( $ ) {
|
||||||
} else {
|
} else {
|
||||||
data.value = accounting.unformat( value, woocommerce_admin.mon_decimal_point );
|
data.value = accounting.unformat( value, woocommerce_admin.mon_decimal_point );
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'variable_regular_price' :
|
case 'variable_regular_price' :
|
||||||
|
@ -736,6 +738,8 @@ jQuery( function( $ ) {
|
||||||
|
|
||||||
if ( value != null ) {
|
if ( value != null ) {
|
||||||
data.value = value;
|
data.value = value;
|
||||||
|
} else {
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'variable_sale_schedule' :
|
case 'variable_sale_schedule' :
|
||||||
|
@ -749,6 +753,10 @@ jQuery( function( $ ) {
|
||||||
if ( null === data.date_to ) {
|
if ( null === data.date_to ) {
|
||||||
data.date_to = false;
|
data.date_to = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( false === data.date_to && false === data.date_from ) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
default :
|
default :
|
||||||
$( 'select.variation_actions' ).trigger( do_variation_action );
|
$( 'select.variation_actions' ).trigger( do_variation_action );
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue