jshint fixes

This commit is contained in:
Gerhard Potgieter 2018-09-27 08:07:42 +02:00
parent 711c9bdcd4
commit ee1c667645
1 changed files with 2 additions and 2 deletions

View File

@ -466,8 +466,8 @@ jQuery( function( $ ) {
// Make sure the dropdown is not disabled for empty value attributes.
var nr_elements = original_data.length / 6;
for ( i = 0; i < nr_elements; i++ ) {
if ( typeof( original_data ) != 'undefined' && original_data[ i * 6 + 2 ].value === '' ) {
for ( var i = 0; i < nr_elements; i++ ) {
if ( typeof( original_data ) !== 'undefined' && original_data[ i * 6 + 2 ].value === '' ) {
$( 'select.attribute_taxonomy' ).find( 'option[value="' + original_data[ i * 6 ].value + '"]' ).removeAttr( 'disabled' );
}
}