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

CRM/Mailing/Form/Group.php
templates/CRM/Mailing/Form/Group.tpl

index 5b312838e0e21ca8c70d81aaaa599181d8c0f0db..53ed42b54feb0ea2ed09e0790e71b6835de831b7 100644 (file)
@@ -39,6 +39,8 @@
  */
 class CRM_Mailing_Form_Group extends CRM_Contact_Form_Task {
 
+  protected $unsavedChangesWarn = TRUE;
+  
   /**
    * the mailing ID of the mailing if we are resuming a mailing
    *
index e273a97c6267cba1027684ffeac8a7b91b8dcf16..9e091fa0add255a446bcb66a41b3017a34935033 100644 (file)
@@ -76,8 +76,5 @@
 {/if}
   <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl"}</div>
 </div>
-
-{* include jscript to warn if unsaved form field changes *}
-{include file="CRM/common/formNavigate.tpl"}
 </div>