Skip to content

Commit

Permalink
Braintree - MID Compatibility, ref #521
Browse files Browse the repository at this point in the history
  • Loading branch information
kcppdevelopers committed Aug 6, 2016
1 parent 8e02708 commit 5a3cb56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/wc-gateway-braintree-angelleye.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ public function admin_options() {
<?php $this->generate_settings_html(); ?>
<script type="text/javascript">
jQuery('#woocommerce_braintree_sandbox').change(function () {
var sandbox = jQuery('#woocommerce_braintree_sandbox_public_key, #woocommerce_braintree_sandbox_private_key, #woocommerce_braintree_sandbox_merchant_id, #woocommerce_braintree_sandbox_merchant_account_id').closest('tr'),
var production = jQuery('#woocommerce_braintree_public_key, #woocommerce_braintree_private_key, #woocommerce_braintree_merchant_id, #woocommerce_braintree_merchant_account_id').closest('tr');
sandbox = jQuery('#woocommerce_braintree_sandbox_public_key, #woocommerce_braintree_sandbox_private_key, #woocommerce_braintree_sandbox_merchant_id, #woocommerce_braintree_sandbox_merchant_account_id').closest('tr'),
production = jQuery('#woocommerce_braintree_public_key, #woocommerce_braintree_private_key, #woocommerce_braintree_merchant_id, #woocommerce_braintree_merchant_account_id').closest('tr');
if (jQuery(this).is(':checked')) {
sandbox.show();
production.hide();
Expand Down

0 comments on commit 5a3cb56

Please sign in to comment.