"use strict"; // // Takes a input form element and a hidden form element (to store the selected id in) along with an array of objects, to build a dropdown select control that allows the user to type part of the selection to filter the list. // (function($) { var EditableSelect = function($input, $hidden, data, options) { var _this = this; this.$input = $input; this.$hidden = $hidden; this.options = $.extend({}, EditableSelect.DEFAULTS, options); this.$selected = null; this.$listContainer = $('
', {style: 'position: relative; height: 0;'}); this.$list = $('