JS code incorrectly marks fields as required
-
PLUGIN: wp-e-commerce
VERSION: since foreverPROBLEM: The code bellow (“find(..)”) returns object and so always evaluates to true – so always inserts asterix..
FILE: wp-e-commerce/wpsc-core/js/wp-e-commerce.js LINE: 883 CHANGE: if ( label_element.find('.asterix') ) { label = label + '<span class="asterix">*</span>'; TO: if ( label_element.find('.asterix').length ) {
The topic ‘JS code incorrectly marks fields as required’ is closed to new replies.