From b74a83b27404c24abb0c2c669fc8ecc5bd3fa4f6 Mon Sep 17 00:00:00 2001 From: mzd Date: Wed, 30 Apr 2014 17:50:53 -0400 Subject: [PATCH] CRM-14353 - replacing formNavigate.tpl in-progress ---------------------------------------- * CRM-14353: Fix formNavigate to work with multiple forms & ajax https://issues.civicrm.org/jira/browse/CRM-14353 --- CRM/Pledge/Form/Pledge.php | 2 ++ templates/CRM/Pledge/Form/Pledge.tpl | 4 ---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/CRM/Pledge/Form/Pledge.php b/CRM/Pledge/Form/Pledge.php index cafb67983f..dd2bc9b179 100644 --- a/CRM/Pledge/Form/Pledge.php +++ b/CRM/Pledge/Form/Pledge.php @@ -74,6 +74,8 @@ class CRM_Pledge_Form_Pledge extends CRM_Core_Form { */ public $_isPending = FALSE; + protected $unsavedChangesWarn = TRUE; + /** * Function to set variables up before form is built * diff --git a/templates/CRM/Pledge/Form/Pledge.tpl b/templates/CRM/Pledge/Form/Pledge.tpl index 4223dd56d4..df073bb058 100644 --- a/templates/CRM/Pledge/Form/Pledge.tpl +++ b/templates/CRM/Pledge/Form/Pledge.tpl @@ -296,9 +296,5 @@ function loadPanes( id ) { invert = 0 } {/if} - - {* include jscript to warn if unsaved form field changes *} - {include file="CRM/common/formNavigate.tpl"} - {/if} {* closing of main custom data if *} -- 2.25.1