From c454e31e5f2a161f5e60f52b543c6230bbb25181 Mon Sep 17 00:00:00 2001 From: kcppdevelopers Date: Tue, 7 Jul 2020 17:31:55 +0530 Subject: [PATCH] Smart button JS issue, PFW-654 --- assets/js/angelleye-admin.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/assets/js/angelleye-admin.js b/assets/js/angelleye-admin.js index b7ac23ecc..c3c6ef5c4 100644 --- a/assets/js/angelleye-admin.js +++ b/assets/js/angelleye-admin.js @@ -57,20 +57,21 @@ jQuery(document).ready(function ($) { jQuery('#woocommerce_paypal_express_show_paypal_credit').closest('tr').hide(); jQuery('woocommerce_paypal_express_enable_google_analytics_click').closest('tr').hide(); jQuery('#woocommerce_paypal_express_checkout_with_pp_button_type').closest('tr').hide(); - jQuery('.angelleye_smart_button_setting_left').show(); jQuery('.in_context_checkout_part').show(); jQuery('.in_context_checkout_part').next('p').show(); - jQuery('.in_context_checkout_part').parents('table').show(); + jQuery('.in_context_checkout_part').parents('tr').show(); } else { + jQuery('.in_context_checkout_part_other').hide(); + jQuery('.in_context_checkout_part_other').next('p').hide(); + jQuery('.in_context_checkout_part_other').parents('table').hide(); jQuery('.display_smart_button_previews').hide(); jQuery('.angelleye_button_settings_selector').hide(); jQuery('#woocommerce_paypal_express_show_paypal_credit').closest('tr').show(); - jQuery('#woocommerce_paypal_express_checkout_with_pp_button_type').closest('tr').show(); - jQuery('.angelleye_smart_button_setting_left').hide(); jQuery('woocommerce_paypal_express_enable_google_analytics_click').closest('tr').show(); - jQuery('.in_context_checkout_part_other').parents('table').hide(); - jQuery('.in_context_checkout_part_other').hide(); - jQuery('.in_context_checkout_part_other').next('p').hide(); + jQuery('#woocommerce_paypal_express_checkout_with_pp_button_type').closest('tr').show(); + jQuery('.in_context_checkout_part').show(); + jQuery('.in_context_checkout_part').next('p').hide(); + jQuery('.in_context_checkout_part').parents('tr').hide(); } }).change(); $("#woocommerce_paypal_express_customer_service_number").attr("maxlength", "16");