Skip to content

Commit

Permalink
Add class to dropdown as well as input
Browse files Browse the repository at this point in the history
  • Loading branch information
kneath committed Sep 24, 2008
1 parent 94eb424 commit 0d6e78f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autocompleter.js
Expand Up @@ -33,8 +33,8 @@ var SelectAutoCompleter = new Class({

// Setup the autocompleter element
var wrapper = new Element('div', {'class': 'autocomplete'});
this.element = new Element('input', {'class': 'textfield categories'});
this.dropDown = new Element('ul', {'class': 'auto-dropdown'});
this.element = new Element('input', {'class': 'textfield ' + this.select.className});
this.dropDown = new Element('ul', {'class': 'auto-dropdown ' + this.select.className});
this.dropDown.setStyle('display', 'none');
this.element.addEvent('focus', this.onFocus.bind(this));
this.element.addEvent('blur', function(){ this.onBlur.delay(100, this); }.bind(this));
Expand Down

0 comments on commit 0d6e78f

Please sign in to comment.