Update JS to conform to WP coding standards

This commit is contained in:
Gerhard Potgieter 2018-09-27 08:05:44 +02:00
parent f637cf3005
commit 711c9bdcd4
1 changed files with 1 additions and 1 deletions

View File

@ -467,7 +467,7 @@ 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 === "" ) {
if ( typeof( original_data ) != 'undefined' && original_data[ i * 6 + 2 ].value === '' ) {
$( 'select.attribute_taxonomy' ).find( 'option[value="' + original_data[ i * 6 ].value + '"]' ).removeAttr( 'disabled' );
}
}