Commits

Anonymous committed 69be239

set style

Comments (0)

Files changed (2)

src/jquery.ui.selectautocomplete.js

 		options = this.options;
 		this.element.hide();
 		if(options.newValuesTextArea){$(options.newValuesTextArea).hide();};
-		this.widgetContainer = $('<div class="ui-widget"/>');
+		this.widgetContainer = $('<div class="ui-widget ui-selectautocomplete"/>');
 		this.selectedTagsContainer = selectedTagsContainer = $('<div class="selectedtags-container"/>');
 		this.inputBox = inputBox = $('<input class="inputBox"/>');
 		this.widgetContainer.append(this.selectedTagsContainer);

styles/jquery.ui.selectautocomplete.css

-(function($) {
+ui-selectautocomplete, label.ui-state-default{
+    background: #DDD;
+    color: #205C90;
+}
 
-$.widget("ui.prettyselect", {
-	options: {
-		sourceType: 'select',
-		additionalSource: null
-	},
-	_create: function() {
-		// this.element.hide();
-		this.container = $('<div class="ui-widget"/>');
-		this.inputBox = $('<input class="inputBox"/>');
-		this.element.after(uiWidget);
-		this.container.append(inputBox);
-		
-		var values = this.element.children().map(function(i){return $(this).attr('value')});
-		this.inputBox.autocomplete({
-			source: values.toArray()
-		});
-		
-	},
-	destroy: function() {
-		this.element.show();
-		this.container.remove();
-
-		$.Widget.prototype.destroy.apply(this, arguments);
-	},
-});
-})(jQuery);
+ui-selectautocomplete, label.ui-state-active{
+    background: #205C90;
+    color: white;
+}