From fc725b27c3fc26e0183df520bb35ea5f60c24602 Mon Sep 17 00:00:00 2001 From: Jeff Stieler Date: Mon, 11 Sep 2017 13:56:29 -0700 Subject: [PATCH] Setup wizard: camelCase vs. snake_case in JavaScript. --- assets/js/admin/wc-setup.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/js/admin/wc-setup.js b/assets/js/admin/wc-setup.js index 571acfcb002..9df0725978d 100644 --- a/assets/js/admin/wc-setup.js +++ b/assets/js/admin/wc-setup.js @@ -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() {