Merge branch 4.5 into 4.6
authorColeman Watts <coleman@civicrm.org>
Mon, 30 Mar 2015 00:00:12 +0000 (20:00 -0400)
committerColeman Watts <coleman@civicrm.org>
Mon, 30 Mar 2015 00:00:12 +0000 (20:00 -0400)
1  2 
CRM/Contact/Form/Merge.php
js/Common.js

Simple merge
diff --cc js/Common.js
index 4ad3867132e8da9256f2ce03a380bc4a2c797760,e0ac0498f5ddb7b571289dbc0a1ea3cbee8366d7..34fdb24960a674cc93dc3451d2f5eae3c590838f
@@@ -216,26 -200,9 +216,26 @@@ CRM.strings = CRM.strings || {}
  
    // Workaround for https://github.com/ivaynberg/select2/issues/1246
    $.ui.dialog.prototype._allowInteraction = function(e) {
-     return !!$(e.target).closest('.ui-dialog, .ui-datepicker, .select2-drop, .cke_dialog').length;
+     return !!$(e.target).closest('.ui-dialog, .ui-datepicker, .select2-drop, .cke_dialog, #civicrm-menu').length;
    };
  
 +  // Implements jQuery hook.prop
 +  $.propHooks.disabled = {
 +    set: function (el, value, name) {
 +      // Sync button enabled status with wrapper css
 +      if ($(el).is('span.crm-button > input.crm-form-submit')) {
 +        $(el).parent().toggleClass('crm-button-disabled', !!value);
 +      }
 +      // Sync button enabled status with dialog button
 +      if ($(el).is('.ui-dialog input.crm-form-submit')) {
 +        $(el).closest('.ui-dialog').find('.ui-dialog-buttonset button[data-identifier='+ $(el).attr('name') +']').prop('disabled', value);
 +      }
 +      if ($(el).is('.crm-form-date-wrapper .crm-hidden-date')) {
 +        $(el).siblings().prop('disabled', value);
 +      }
 +    }
 +  };
 +
    /**
     * Populate a select list, overwriting the existing options except for the placeholder.
     * @param select jquery selector - 1 or more select elements