CRM-14353 - Better select2 handling
authorColeman Watts <coleman@civicrm.org>
Sun, 8 Mar 2015 16:24:46 +0000 (12:24 -0400)
committerColeman Watts <coleman@civicrm.org>
Sun, 8 Mar 2015 16:24:46 +0000 (12:24 -0400)
js/Common.js

index 69a582f08a85663bb3a8eab879354016564fd57b..a955a119019289342976c875b1d876bc95d12a46 100644 (file)
@@ -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, :disabled').each(function () {
+    $(':input:visible, .select2-container:visible+:input:hidden', 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();