From: kurund Date: Sat, 17 May 2014 22:41:06 +0000 (-0500) Subject: we should skip value changes of submit buttons, CRM-14703 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=3c0624e2f48525d562ca14871a24191aa4ac5ccf;p=civicrm-core.git we should skip value changes of submit buttons, CRM-14703 ---------------------------------------- * CRM-14703: https://issues.civicrm.org/jira/browse/CRM-14703 --- 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; } });