CRM-14353 - replacing formNavigate.tpl in-progress
authormzd <mzd@ginkgostreet.com>
Wed, 30 Apr 2014 21:48:54 +0000 (17:48 -0400)
committermzd <mzd@ginkgostreet.com>
Thu, 1 May 2014 18:59:11 +0000 (14:59 -0400)
----------------------------------------
* CRM-14353: Fix formNavigate to work with multiple forms & ajax
  https://issues.civicrm.org/jira/browse/CRM-14353

CRM/Case/Form/Case.php
templates/CRM/Case/Form/Case.tpl

index ff4814dbc3d555eb1efac5ae56decd4a5d6d1ad8..64eb2f70740f8d7a0a3d1b16c10dd552936aa79e 100644 (file)
@@ -39,6 +39,8 @@
  */
 class CRM_Case_Form_Case extends CRM_Core_Form {
 
+  protected $unsavedChangesWarn = TRUE;
+  
   /**
    * The context
    *
index 4147889e257700f2e7d7816ac20365837f5bd246..6bb161de377845a73239306bfe57378d29d65759 100644 (file)
 
 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
 
-{* include jscript to warn if unsaved form field changes *}
-{include file="CRM/common/formNavigate.tpl"}
 {/if}
 </div>