From 3291d3951ab177cde692f9c763248027b3c5a128 Mon Sep 17 00:00:00 2001
From: "Richard D. Worth"
Date: Fri, 9 Apr 2010 14:43:44 -0400
Subject: sortable: don't call the base widget _setOption for disabled to avoid
the ui-state-disabled class being added. Fixes #5501 - sortable: disabled
should not have the ui-state-disabled class
---
ui/jquery.ui.sortable.js | 12 ++++++++++++
1 file changed, 12 insertions(+)
(limited to 'ui')
diff --git a/ui/jquery.ui.sortable.js b/ui/jquery.ui.sortable.js
index 28be062f6..0fa3a1253 100644
--- a/ui/jquery.ui.sortable.js
+++ b/ui/jquery.ui.sortable.js
@@ -73,6 +73,18 @@ $.widget("ui.sortable", $.ui.mouse, {
return this;
},
+ _setOption: function(key, value){
+ if ( key === "disabled" ) {
+ this.options[ key ] = value;
+
+ this.widget()
+ [ value ? "addClass" : "removeClass"]( "ui-sortable-disabled" );
+ } else {
+ // Don't call widget base _setOption for disable as it adds ui-state-disabled class
+ $.Widget.prototype._setOption.apply(self, arguments);
+ }
+ },
+
_mouseCapture: function(event, overrideHandle) {
if (this.reverting) {
--
cgit v1.2.3
From dbc9addfae0c9a2aee2d4a1833b2b1d3ba83f8de Mon Sep 17 00:00:00 2001
From: jzaefferer
Date: Fri, 16 Apr 2010 11:05:35 +0200
Subject: Autocomplete: Refactored code for array filtering into
$.ui.autocomplete.filter, used by remote-with-cache and modified
multiple-demo (now with local data); added multiple-remote to also show
multiple with remote data
---
demos/autocomplete/index.html | 1 +
demos/autocomplete/multiple-remote.html | 75 +++++++++++++++++++++++++++++++
demos/autocomplete/multiple.html | 22 ++++-----
demos/autocomplete/remote-with-cache.html | 7 ++-
ui/jquery.ui.autocomplete.js | 12 ++---
5 files changed, 94 insertions(+), 23 deletions(-)
create mode 100644 demos/autocomplete/multiple-remote.html
(limited to 'ui')
diff --git a/demos/autocomplete/index.html b/demos/autocomplete/index.html
index 0c92d19b4..c7b720784 100644
--- a/demos/autocomplete/index.html
+++ b/demos/autocomplete/index.html
@@ -18,6 +18,7 @@
XML data parsed once
Categories
Multiple values
+ Multiple, remote
+
+
+
+
+
+Usage: Enter at least two characters to get bird name suggestions. Select a value to continue adding more names.
+
+
+This is an example showing how to use the source-option along with some events to enable autocompleting multiple values into a single field.
+
+
+
+
diff --git a/demos/autocomplete/multiple-remote.html b/demos/autocomplete/multiple-remote.html
new file mode 100644
index 000000000..5e0f4b50b
--- /dev/null
+++ b/demos/autocomplete/multiple-remote.html
@@ -0,0 +1,75 @@
+
+
+