aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.sortable.js
diff options
context:
space:
mode:
authorPaul Bakaus <paul.bakaus@googlemail.com>2008-06-09 01:54:28 +0000
committerPaul Bakaus <paul.bakaus@googlemail.com>2008-06-09 01:54:28 +0000
commit4b186675af2dd02878b538de212780f3df102ae3 (patch)
treead3f3ae43f5dd7776fb236e698c5e2d40c6be704 /ui/ui.sortable.js
parent8105c48065df87218c7df40dd630b5ed0f3ecd5c (diff)
downloadjquery-ui-4b186675af2dd02878b538de212780f3df102ae3.tar.gz
jquery-ui-4b186675af2dd02878b538de212780f3df102ae3.zip
ui-core: added mouseCapture, replacing the condition feature before. Allows text to be selected in sortables on non-handles.
Diffstat (limited to 'ui/ui.sortable.js')
-rw-r--r--ui/ui.sortable.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/ui/ui.sortable.js b/ui/ui.sortable.js
index 9718dd1bc..4cc200bef 100644
--- a/ui/ui.sortable.js
+++ b/ui/ui.sortable.js
@@ -276,10 +276,7 @@ $.widget("ui.sortable", $.extend($.ui.mouse, {
};
},
- mouseStart: function(e, overrideHandle, noActivation) {
-
- var o = this.options;
- this.currentContainer = this;
+ mouseCapture: function(e, overrideHandle) {
if(this.options.disabled || this.options.type == 'static') return false;
@@ -300,6 +297,13 @@ $.widget("ui.sortable", $.extend($.ui.mouse, {
}
this.currentItem = currentItem;
+ return true;
+
+ },
+ mouseStart: function(e, overrideHandle, noActivation) {
+
+ var o = this.options;
+ this.currentContainer = this;
this.refresh();