From 0944398b5a71b520a26093a3f6ca6be9260e611a Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sat, 7 Mar 2015 21:38:11 -0500 Subject: [PATCH] CRM-14353 - Fix unsavedChanges js to handle disabled fields --- js/Common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/Common.js b/js/Common.js index bd5227f8e3..69a582f08a 100644 --- a/js/Common.js +++ b/js/Common.js @@ -315,7 +315,7 @@ CRM.strings = CRM.strings || {}; */ CRM.utils.initialValueChanged = function(el) { var isDirty = false; - $(':input:visible, .select2-container:visible+:input.select2-offscreen', el).not('[type=submit], [type=button], .crm-action-menu').each(function () { + $(':input:visible, .select2-container:visible+:input.select2-offscreen', el).not('[type=submit], [type=button], .crm-action-menu, :disabled').each(function () { var initialValue = $(this).data('crm-initial-value'), currentValue = $(this).is(':checkbox, :radio') ? $(this).prop('checked') : $(this).val(); -- 2.25.1