Merge pull request #4773 from civicrm/version-fix
[civicrm-core.git] / templates / CRM / Contact / Form / Inline / CommunicationPreferences.tpl
index 0e7e3ae67cfe1a2a2371320c1dd153b8b38616ce..629a62e00a328ce0197108a2a1acac89baff2d69 100644 (file)
@@ -1,6 +1,6 @@
 {*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.5                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
          </div>
        </div>
       {/if}
-      
+
 
       {if !empty($form.postal_greeting_id)}
       <div class="crm-summary-row">
          </div>
        </div>
       {/if}
+
     </div>
  </div>
 
 {literal}
 <script type="text/javascript">
 CRM.$(function($) {
-    var fields = new Array( 'postal_greeting', 'addressee', 'email_greeting');
+    var fields = ['postal_greeting', 'addressee', 'email_greeting'];
     for ( var i = 0; i < 3; i++ ) {
-      cj( "#" + fields[i] + "_id").change( function( ) {
-        var fldName = cj(this).attr( 'id' );
-        if ( cj(this).val( ) == 4 ) {
-          cj("#greetings1").show( );
-          cj("#greetings2").show( );
-          cj( "#" + fldName + "_html").show( );
-          cj( "#" + fldName + "_label").show( );
+      $( "#" + fields[i] + "_id").change( function( ) {
+        var fldName = $(this).attr( 'id' );
+        if ( $(this).val( ) == 4 ) {
+          $("#greetings1").show( );
+          $("#greetings2").show( );
+          $( "#" + fldName + "_html").show( );
+          $( "#" + fldName + "_label").show( );
         } else {
-          cj( "#" + fldName + "_html").hide( );
-          cj( "#" + fldName + "_label").hide( );
-          cj( "#" + fldName.slice(0, -3) + "_custom" ).val('');
+          $( "#" + fldName + "_html").hide( );
+          $( "#" + fldName + "_label").hide( );
+          $( "#" + fldName.slice(0, -3) + "_custom" ).val('');
         }
       });
     }