var HDO = HDO || {};

(function (H, $) {
  H.representativeSelector = {
    init: function (opts) {
      var districtSelect, representativeSelect, representatives, selectedRepresentatives;

      districtSelect       = opts.districtSelect;
      representativeSelect = opts.representativeSelect;
      representatives      = districtSelect.data('representatives');

      function useRepresentativesFrom(district) {
        representativeSelect.html('<option/>');

        if (district === '') {
          selectedRepresentatives = representatives;
        } else {
          selectedRepresentatives = $(representatives).filter(function () {
            return district === this.district;
          });
        }

        $.each(selectedRepresentatives, function () {
          representativeSelect.append($("<option />").val(this.slug).text(this.name));
        });

        representativeSelect.trigger('liszt:updated'); // chosen
      }

      districtSelect.change(function (e) {
        useRepresentativesFrom($(this).val());

        if (opts.selectedRepresentative !== '') {
          representativeSelect.val(opts.selectedRepresentative).change();
        }
      });

      if (opts.selectedDistrict !== '') {
        districtSelect.val(opts.selectedDistrict).change();
      }

      representativeSelect.chosen({});
      districtSelect.chosen({});

    }
  };
}(HDO, window.jQuery));

@@ -1314,24 +1314,45 @@
 ect.chosen(%7B
+search_contains: true
 %7D);%0A      di
@@ -1372,21 +1372,40 @@
 chosen(%7B
+disable_search: true
 %7D);%0A
-%0A
     %7D%0A  

Disable district search + use contains filter for representatives.