From d45c349e52a2b2bcd555807eecc81121be101732 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Tue, 14 Nov 2017 20:45:07 +1300 Subject: [PATCH] CRM-21304 quash form reload message when refreshing (#11122) * CRM-21304 quash form reload message when refreshing * CRM-21304 - Disable unsaved changes warning on dedupe form ---------------------------------------- * CRM-21304: Dedupe usablity, quash refresh message in more cases https://issues.civicrm.org/jira/browse/CRM-21304 --- CRM/Contact/Form/Merge.php | 1 + templates/CRM/Contact/Page/DedupeFind.tpl | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/CRM/Contact/Form/Merge.php b/CRM/Contact/Form/Merge.php index 5a8f5a77c5..9a567873eb 100644 --- a/CRM/Contact/Form/Merge.php +++ b/CRM/Contact/Form/Merge.php @@ -230,6 +230,7 @@ class CRM_Contact_Form_Merge extends CRM_Core_Form { } public function buildQuickForm() { + $this->unsavedChangesWarn = FALSE; CRM_Utils_System::setTitle(ts('Merge %1 contacts', array(1 => $this->_contactType))); $buttons = array(); diff --git a/templates/CRM/Contact/Page/DedupeFind.tpl b/templates/CRM/Contact/Page/DedupeFind.tpl index 082229e1ff..17e2edc09d 100644 --- a/templates/CRM/Contact/Page/DedupeFind.tpl +++ b/templates/CRM/Contact/Page/DedupeFind.tpl @@ -181,10 +181,6 @@ } }); $(function($) { - $('.button').click(function() { - // no unsaved changes confirmation dialogs - $('[data-warn-changes=true]').attr('data-warn-changes', 'false'); - }); var sourceUrl = {/literal}'{$sourceUrl}'{literal}; var context = {/literal}'{$context}'{literal}; -- 2.25.1