r2216 - in branches/dev/autocomplete: themes/base ui
Author: joern.zaefferer
Date: Sat Mar 7 02:48:32 2009
New Revision: 2216
Modified:
branches/dev/autocomplete/themes/base/ui.autocomplete.css
branches/dev/autocomplete/ui/ui.autocomplete.js
Log:
autocomplete: applied some basic UI CSS Framework classes
Modified: branches/dev/autocomplete/themes/base/ui.autocomplete.css
==============================================================================
--- branches/dev/autocomplete/themes/base/ui.autocomplete.css (original)
+++ branches/dev/autocomplete/themes/base/ui.autocomplete.css Sat Mar 7
02:48:32 2009
@@ -2,9 +2,6 @@
----------------------------------*/
.ui-autocomplete {}
.ui-autocomplete-results {
- padding: 0px;
- border: 1px solid black;
- background-color: white;
overflow: hidden;
z-index: 99999;
}
Modified: branches/dev/autocomplete/ui/ui.autocomplete.js
==============================================================================
--- branches/dev/autocomplete/ui/ui.autocomplete.js (original)
+++ branches/dev/autocomplete/ui/ui.autocomplete.js Sat Mar 7 02:48:32 2009
@@ -404,7 +404,7 @@
$.extend($.ui.autocomplete, {
defaults: {
inputClass: "ui-autocomplete-input",
- resultsClass: "ui-autocomplete-results",
+ resultsClass: "ui-widget ui-widget-content ui-autocomplete-results",
loadingClass: "ui-autocomplete-loading",
minChars: 1,
ajaxDelay: 400,
@@ -570,7 +570,7 @@
$.ui.autocomplete.select = function (options, input, select, config) {
var CLASSES = {
- ACTIVE: "ui-autocomplete-over"
+ ACTIVE: "ui-state-active"
};
var listItems,
@@ -665,7 +665,7 @@
var formatted = options.formatItem(data[i].data, i+1, max,
data[i].value, term);
if ( formatted === false )
continue;
- var li = $("<li/>").html( options.highlight(formatted, term)
).addClass(i%2 ==
0 ? "ui-autocomplete-even" : "ui-autocomplete-odd").appendTo(list)[0];
+ var li = $("<li/>").html( options.highlight(formatted, term)
).addClass("ui-state-default").addClass(i%2 ==
0 ? "ui-autocomplete-even" : "ui-autocomplete-odd").appendTo(list)[0];
$.data(li, "ui-autocomplete-data", data[i]);
}
listItems = list.find("li");