From 3571a1c22bda35264e6bf5eb85b171518e99bb5e Mon Sep 17 00:00:00 2001 From: Manoj K Date: Fri, 17 Oct 2014 10:46:38 +0530 Subject: [PATCH] #29801 - Fix for create widget form not showing. --- CRM/Wci/Form/CreateWidget.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Wci/Form/CreateWidget.php b/CRM/Wci/Form/CreateWidget.php index 80d5f72..9eaccd5 100644 --- a/CRM/Wci/Form/CreateWidget.php +++ b/CRM/Wci/Form/CreateWidget.php @@ -15,9 +15,9 @@ cj(function ( $ ) { $('#custom_template').attr("disabled",true); } if( $('#title').val() != "") { - $('#embd_code').parent().parent().parent().show(); + $('#embd_code').parents('.crm-section').show(); } else { - $('#embd_code').parent().parent().parent().hide(); + $('#embd_code').parents('.crm-section').hide(); } // $('#embd_code').attr("disabled",true); } -- 2.25.1