Fixed jshint errors

This commit is contained in:
Claudio Sanches 2019-05-02 19:20:33 -03:00
parent 98edbd2f78
commit eba7940228
1 changed files with 5 additions and 3 deletions

View File

@ -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;
} }
} ); } );