Permalink
Browse files

Add class to dropdown as well as input

  • Loading branch information...
kneath committed Sep 24, 2008
1 parent 94eb424 commit 0d6e78f9489b27af4902a4a8890aad81b3589a1b
Showing with 2 additions and 2 deletions.
  1. +2 −2 autocompleter.js
View
@@ -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));

0 comments on commit 0d6e78f

Please sign in to comment.