{*
+--------------------------------------------------------------------+
- | CiviCRM version 4.4 |
+ | CiviCRM version 4.5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
+ | Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
<table class="form-layout-compressed">
<tr class="crm-uf-field-form-block-field_name">
- <td class="label">{$form.field_name.label}</td>
+ <td class="label">{$form.field_name.label} {help id='field_name_0'}</td>
<td>{$form.field_name.html}<br />
<span class="description"> {ts}Select the type of CiviCRM record and the field you want to include in this Profile.{/ts}</span></td>
</tr>
otherModule[{/literal}{$mkey}{literal}] = '{/literal}{$mval}{literal}';
{/literal}{/foreach}{literal}
-cj(function($) {
+CRM.$(function($) {
if ( $.inArray( "Profile", otherModule ) > -1 && $.inArray( "Search Profile", otherModule ) == -1 ){
$('#profile_visibility').show();
}
else if( $.inArray( "Search Profile", otherModule ) > -1 ){
$('#profile_visibility').show();
- $("#in_selector").attr('checked',true);
+ $("#in_selector").prop('checked',true);
}
else if( $.inArray( "Profile", otherModule ) == -1 && $.inArray( "Search Profile", otherModule ) == -1 ){
$('#profile_visibility').hide();
if (cj("#visibility").val() == "User and User Admin Only") {
is_search.hide();
in_selector.hide();
- cj("#is_searchable").attr('checked',false);
+ cj("#is_searchable").prop('checked',false);
}
else {
- if (!cj("#is_view").attr('checked')) {
+ if (!cj("#is_view").prop('checked')) {
is_search.show();
}
var fldName = cj("#field_name_1").val();
showHideSeletorSearch( );
});
-cj( function( ) {
+CRM.$(function($) {
cj("#field_name_1").addClass( 'huge' );
viewOnlyShowHide( );
cj("#is_view").click( function(){
multiSummaryToggle(cj(this).val());
});
-cj( function( ) {
+CRM.$(function($) {
var fieldId = cj("#field_name_1").val();
multiSummaryToggle(fieldId);
});
}
else {
if (cj('#is_multi_summary').is(':checked')) {
- cj('#is_multi_summary').removeAttr('checked');
+ cj('#is_multi_summary').prop('checked', false);
}
cj('.crm-uf-field-form-block-is_multi').hide();
}
}
else {
if (cj('#is_multi_summary').is(':checked')) {
- cj('#is_multi_summary').removeAttr('checked');
+ cj('#is_multi_summary').prop('checked', false);
}
cj('.crm-uf-field-form-block-is_multi').hide();
}
function viewOnlyShowHide() {
var is_search = cj('#is_search_label, #is_search_html');
- if (cj("#is_view").attr('checked')) {
+ if (cj("#is_view").prop('checked')) {
is_search.hide();
- cj("#is_searchable").attr('checked', false);
+ cj("#is_searchable").prop('checked', false);
}
else if (cj("#visibility").val() != "User and User Admin Only") {
is_search.show();
</script>
{/literal}
-
-{* include jscript to warn if unsaved form field changes *}
-{include file="CRM/common/formNavigate.tpl"}