From: Manoj K Date: Fri, 17 Oct 2014 05:16:38 +0000 (+0530) Subject: #29801 - Fix for create widget form not showing. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=3571a1c22bda35264e6bf5eb85b171518e99bb5e;p=com.zyxware.civiwci.git #29801 - Fix for create widget form not showing. --- 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); }