}
}
- if (!isset($this->_id)) {
- $formName = 'document.forms.' . $this->_name;
-
- $js = "<script type='text/javascript'>\n";
- $js .= "{$formName}['extends_1'].style.display = 'none';\n";
- $js .= "</script>";
- $this->assign('initHideBlocks', $js);
- }
-
$sel = &$this->add('hierselect',
'extends',
ts('Used For'),
{crmButton p='civicrm/admin/custom/group/field' q="action=browse&reset=1&gid=$gid" icon="th-list"}{ts}Custom Fields for this Set{/ts}{/crmButton}
</div>
{/if}
-{if !empty($initHideBlocks|smarty:nodefaults)}{$initHideBoxes|smarty:nodefaults}{/if}
+
{literal}
<script type="text/Javascript">
CRM.$(function($) {
function showHideStyle() {
var
extend = $(this).val(),
- contactTypes = {/literal}{$contactTypes}{literal},
+ contactTypes = {/literal}{$contactTypes|smarty:nodefaults}{literal},
showStyle = "{/literal}{$showStyle}{literal}",
showMultiple = "{/literal}{$showMultiple}{literal}",
showMaxMultiple = "{/literal}{$showMaxMultiple}{literal}",