From 3c0624e2f48525d562ca14871a24191aa4ac5ccf Mon Sep 17 00:00:00 2001 From: kurund Date: Sat, 17 May 2014 17:41:06 -0500 Subject: [PATCH] we should skip value changes of submit buttons, CRM-14703 ---------------------------------------- * CRM-14703: https://issues.civicrm.org/jira/browse/CRM-14703 --- js/Common.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/Common.js b/js/Common.js index 8a385fb132..72a27d4972 100644 --- a/js/Common.js +++ b/js/Common.js @@ -247,7 +247,8 @@ CRM.validate = CRM.validate || { var isDirty = false; $(':input:visible, :input.select2-offscreen', el).each(function () { var initialValue = $(this).data('crm-initial-value'); - if (initialValue !== undefined && initialValue != $(this).val()) { + // skip change of value for submit buttons + if (initialValue !== undefined && !$(this).hasClass('form-submit') && initialValue != $(this).val()) { isDirty = true; } }); -- 2.25.1