"packages/jquery/jquery-ui/js/jquery-ui-1.10.3.custom$min.js",
"packages/jquery/jquery-ui/css/black-tie/jquery-ui-1.10.3.custom$min.css",
+ "packages/jquery/plugins/select2/select2$min.js",
+ "packages/jquery/plugins/select2/select2.css",
+
"packages/jquery/plugins/jquery.autocomplete.js",
"packages/jquery/css/jquery.autocomplete.css",
functions: []
};
+// https://github.com/ivaynberg/select2/pull/2090
+$.fn.select2.defaults.width = 'resolve';
+
(function ($, undefined) {
"use strict";
+ // Initialize widgets
$(document).on('crmLoad', function(e) {
$('table.row-highlight', e.target)
.off('.rowHighlight')
target.toggleClass('crm-row-selected', $(this).is(':checked'));
})
.find('input.select-row:checked').parents('tr').addClass('crm-row-selected');
+ $('.crm-select2', e.target).each(function() {
+ var options = $(this).data('select2') || {};
+ $(this).removeClass('crm-select2').select2(options);
+ });
});
/**