/** * An autocompleter implementation that provides a UI similar to Apple's Mail * To: field where entered items are represented as bubbles etc... * * @author Michael J Rubinsky * @copyright 2008-2015 Horde LLC * @license LGPL-2.1 (http://www.horde.org/licenses/lgpl21) * * @todo H6 Extract common code between this class and IMP's version. Use custom * events instead of passing handlers. */ var PrettyAutocompleter = Class.create({ // Autocompleter aac: null, // Delete image element. dimg: null, enabled: false, // For BC. Remove in H6. selectedItems: [], // required params: // deleteImg // uri initialize: function(element, params) { this.p = Object.extend({ // Outer div/fake input box and CSS class box: 'HordeACBox', boxClass: 'hordeACBox', //