From 68d6459e135da3d50ee10d30d3b99e1bd70411dc Mon Sep 17 00:00:00 2001 From: mzd Date: Thu, 1 May 2014 19:11:21 -0400 Subject: [PATCH] CRM-14353 add support to DatePicker for unsaved changes warning; ---------------------------------------- * CRM-14353: Fix formNavigate to work with multiple forms & ajax https://issues.civicrm.org/jira/browse/CRM-14353 --- templates/CRM/common/jcalendar.tpl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/CRM/common/jcalendar.tpl b/templates/CRM/common/jcalendar.tpl index 75a3445ef5..f092dc8257 100644 --- a/templates/CRM/common/jcalendar.tpl +++ b/templates/CRM/common/jcalendar.tpl @@ -131,6 +131,8 @@ // format date according to display field displayDateValue = cj.datepicker.formatDate( date_format, displayDateValue ); cj( element_date).val( displayDateValue ); + //support unsaved-changes warning: CRM-14353 + cj( element_date).data('crm-initial-value', displayDateValue); cj(element_date).click( function( ) { hideYear( this ); -- 2.25.1