Fixed jshint errors
This commit is contained in:
parent
98edbd2f78
commit
eba7940228
|
@ -173,11 +173,13 @@
|
||||||
|
|
||||||
|
|
||||||
$( '.submit button' ).on( 'click', function() {
|
$( '.submit button' ).on( 'click', function() {
|
||||||
if ( $( 'select#woocommerce_allowed_countries' ).val() === 'specific'
|
if (
|
||||||
&& ! $("[name='woocommerce_specific_allowed_countries[]']").val() ) {
|
$( 'select#woocommerce_allowed_countries' ).val() === 'specific' &&
|
||||||
|
! $( '[name="woocommerce_specific_allowed_countries[]"]' ).val()
|
||||||
|
) {
|
||||||
if ( window.confirm( woocommerce_settings_params.i18n_no_specific_countries_selected ) ) {
|
if ( window.confirm( woocommerce_settings_params.i18n_no_specific_countries_selected ) ) {
|
||||||
return true;
|
return true;
|
||||||
};
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
|
|
Loading…
Reference in New Issue