Setup wizard: camelCase vs. snake_case in JavaScript.

This commit is contained in:
Jeff Stieler 2017-09-11 13:56:29 -07:00
parent 4bf21b9724
commit fc725b27c3
1 changed files with 3 additions and 3 deletions

View File

@ -43,15 +43,15 @@ jQuery( function( $ ) {
$( '.wc-wizard-services' ).on( 'change', '.wc-wizard-shipping-method-select .method', function( e ) {
var $zone = $( this ).parent( 'div' );
var selected_method = e.target.value;
var selectedMethod = e.target.value;
var $descriptions = $zone.find( '.shipping-method-description' );
$descriptions.find( 'p' ).hide();
$descriptions.find( 'p.' + selected_method ).show();
$descriptions.find( 'p.' + selectedMethod ).show();
var $settings = $zone.find( '.shipping-method-settings' );
$settings.find( 'div' ).hide();
$settings.find( 'div.' + selected_method ).show();
$settings.find( 'div.' + selectedMethod ).show();
} );
function submitActivateForm() {