From 504005a5615ba14a486919158abc7cf764d31054 Mon Sep 17 00:00:00 2001 From: mzd Date: Wed, 30 Apr 2014 18:11:22 -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/Mailing/Form/Schedule.php | 2 ++ templates/CRM/Mailing/Form/Schedule.tpl | 4 ---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/CRM/Mailing/Form/Schedule.php b/CRM/Mailing/Form/Schedule.php index 3dcd9055b6..5865b9e404 100644 --- a/CRM/Mailing/Form/Schedule.php +++ b/CRM/Mailing/Form/Schedule.php @@ -38,6 +38,8 @@ */ class CRM_Mailing_Form_Schedule extends CRM_Core_Form { + protected $unsavedChangesWarn = TRUE; + /** * Function to set variables up before form is built * diff --git a/templates/CRM/Mailing/Form/Schedule.tpl b/templates/CRM/Mailing/Form/Schedule.tpl index deccdaf57d..80fdc36e24 100644 --- a/templates/CRM/Mailing/Form/Schedule.tpl +++ b/templates/CRM/Mailing/Form/Schedule.tpl @@ -68,10 +68,6 @@ {/if} - -{* include jscript to warn if unsaved form field changes *} -{include file="CRM/common/formNavigate.tpl"} -