Update JS to conform to WP coding standards
This commit is contained in:
parent
f637cf3005
commit
711c9bdcd4
|
@ -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' );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue