From: Jagadedes Date: Mon, 3 Nov 2014 09:59:52 +0000 (+0530) Subject: #30907 Show only progress bar X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=1e92ea19705e926bf6d8a951bf8425623533b8e3;p=com.zyxware.civiwci.git #30907 Show only progress bar --- diff --git a/createwidget.js b/createwidget.js index 9519b1f..b5a1907 100644 --- a/createwidget.js +++ b/createwidget.js @@ -7,7 +7,7 @@ cj(function ( $ ) { else { $('#custom_template').attr("disabled",true); } - if( $('#title').val() != "") { + if( $('#progress_bar').val() != "") { $('#embd_code').parents('.crm-section').show(); } else { $('#embd_code').parents('.crm-section').hide(); diff --git a/templates/CRM/Wci/Form/CreateWidget.tpl b/templates/CRM/Wci/Form/CreateWidget.tpl index 350ef9a..03b56a8 100644 --- a/templates/CRM/Wci/Form/CreateWidget.tpl +++ b/templates/CRM/Wci/Form/CreateWidget.tpl @@ -14,6 +14,7 @@ {/foreach} +{* {if $form.title.value != ""} *} {php} if(isset($_REQUEST['id'])) { $wid_id = $_REQUEST['id']; @@ -102,6 +103,7 @@ function onReady( ) { +{* {/if} *} {* FIELD EXAMPLE: OPTION 2 (MANUAL LAYOUT)