Merge remote-tracking branch 'upstream/4.4' into 4.4-master-2014-08-04-22-25-32
[civicrm-core.git] / templates / CRM / Contact / Form / CustomData.tpl
index 86929ccb00ceb7a8fb66538106c245c7469f352f..807f00a37afb579a950e18a1e94e23606befb165 100644 (file)
@@ -1,8 +1,8 @@
 {*
  +--------------------------------------------------------------------+
- | 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.                                    |
  |                                                                    |
    {include file="CRM/Custom/Form/CustomData.tpl"}
    {if $multiRecordDisplay eq 'single'}
      <div class="html-adjust">{$form.buttons.html}</div>
-     {* for form rule handling *}
-     {include file="CRM/Form/validate.tpl"}
-     {literal}
-     <script type='text/javascript'>
-       cj(function($) {
-         $('#custom-record-dialog .crm-container-snippet #CustomData').validate(CRM.validate.params);
-         var formOptions = {
-           success:       checkResponse  // post-submit callback
-         };
-
-         //binding the callback to snippet profile form
-         $('.crm-container-snippet #CustomData').ajaxForm(formOptions);
-       });
-
-     // post-submit callback
-     function checkResponse(responseText, statusText, xhr, $form) {
-       //if there is any form error show the dialog
-       //else redirect to post url
-       if (!cj(responseText).find('.crm-error').html()) {
-         window.location.href = '{/literal}{$backUrl}{literal}';
-       }
-     }
-     </script>
-     {/literal}
    {/if}
 {else}
     <div id="customData"></div>
@@ -76,4 +52,4 @@
   {/if}
 {/if}
 
-{include file="CRM/Form/attachmentjs.tpl"}
\ No newline at end of file
+{include file="CRM/Form/attachmentjs.tpl"}