diff --git a/build/build.xml b/build/build.xml
index 0f4131b0e..cdd5aff11 100644
--- a/build/build.xml
+++ b/build/build.xml
@@ -22,24 +22,26 @@
+
-
+
+
-
+
-
+
@@ -49,7 +51,6 @@
-
@@ -57,7 +58,7 @@
-
+
@@ -66,9 +67,33 @@
-
+
+
+
+
+
@@ -108,45 +133,44 @@
-
-
-
-
+
+
+
+
-
+
-
+
+
+
+
+
+
-
-
+
+
-
+
-
+
-
-
-
-
-
+
+
+
-
-
-
-
-
+
@@ -257,5 +281,41 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ${relativepath}
+
+
+
+
+
+
+
+
diff --git a/demos/autocomplete/combobox.html b/demos/autocomplete/combobox.html
index 4c6b656a1..3001f7d17 100644
--- a/demos/autocomplete/combobox.html
+++ b/demos/autocomplete/combobox.html
@@ -30,24 +30,23 @@
var matcher = new RegExp(request.term, "i");
response(select.children("option").map(function() {
var text = $(this).text();
- if (!request.term || matcher.test(text))
+ if (this.value && (!request.term || matcher.test(text)))
return {
- id: $(this).val(),
+ id: this.value,
label: text.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)(" + $.ui.autocomplete.escapeRegex(request.term) + ")(?![^<>]*>)(?![^&;]+;)", "gi"), "$1 "),
value: text
};
}));
},
delay: 0,
- select: function(e, ui) {
+ change: function(event, ui) {
if (!ui.item) {
// remove invalid value, as it didn't match anything
$(this).val("");
return false;
}
- $(this).focus();
select.val(ui.item.id);
- self._trigger("selected", null, {
+ self._trigger("selected", event, {
item: select.find("[value='" + ui.item.id + "']")
});
@@ -56,6 +55,7 @@
})
.addClass("ui-widget ui-widget-content ui-corner-left");
$(" ")
+ .attr("tabIndex", -1)
.attr("title", "Show All Items")
.insertAfter(input)
.button({
@@ -81,7 +81,10 @@
})(jQuery);
$(function() {
- $("select").combobox();
+ $("#combobox").combobox();
+ $("#toggle").click(function() {
+ $("#combobox").toggle();
+ });
});
@@ -91,7 +94,8 @@
Your preferred programming language:
-
+
+ Select one...
asp
c
c++
@@ -107,6 +111,7 @@
scala
+Show underlying select
diff --git a/demos/autocomplete/index.html b/demos/autocomplete/index.html
index 9389b076d..42f13dc4b 100644
--- a/demos/autocomplete/index.html
+++ b/demos/autocomplete/index.html
@@ -16,6 +16,7 @@
Combobox
Custom data and display
XML data parsed once
+ Categories
+
+
+
+
+
+
+
+
+ Lolcat Shirt
+ Cheezeburger Shirt
+ Buckit Shirt
+
+
+
+
+
+ Zebra Striped
+ Black Leather
+ Alligator Leather
+
+
+
+
+
+
+
+
+
+
+
+ Add your items here
+
+
+
+
+
+
+
+
+
Demonstrate how to use an accordion to structure products into a catalog and make use drag and drop for adding
+them to a shopping cart, where they are sortable.
+
+
+