aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.draggable.js
diff options
context:
space:
mode:
authorPaul Bakaus <paul.bakaus@googlemail.com>2008-07-28 21:06:04 +0000
committerPaul Bakaus <paul.bakaus@googlemail.com>2008-07-28 21:06:04 +0000
commitf2265bf9e6c2bde7402d5dfef1d1f223e9a4de2e (patch)
tree06da2cb7333eb7c60e6c599f143eeef551001b6b /ui/ui.draggable.js
parentc2ef2553bcc6fc3f2fd08fcf7e2d597077b2ce7a (diff)
downloadjquery-ui-f2265bf9e6c2bde7402d5dfef1d1f223e9a4de2e.tar.gz
jquery-ui-f2265bf9e6c2bde7402d5dfef1d1f223e9a4de2e.zip
draggable,droppable: implemented cssNamespace option, if set to false/null, it won't add a class to the element
Diffstat (limited to 'ui/ui.draggable.js')
-rw-r--r--ui/ui.draggable.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/ui/ui.draggable.js b/ui/ui.draggable.js
index d72e24685..87e89bd1f 100644
--- a/ui/ui.draggable.js
+++ b/ui/ui.draggable.js
@@ -17,7 +17,8 @@ $.widget("ui.draggable", $.extend({}, $.ui.mouse, {
if (this.options.helper == 'original' && !(/^(?:r|a|f)/).test(this.element.css("position")))
this.element[0].style.position = 'relative';
-
+
+ (this.options.cssNamespace && this.element.addClass(this.options.cssNamespace+"-draggable"));
(this.options.disabled && this.element.addClass('ui-draggable-disabled'));
this.mouseInit();
@@ -268,7 +269,8 @@ $.extend($.ui.draggable, {
delay: 0,
distance: 1,
helper: "original",
- scope: "default"
+ scope: "default",
+ cssNamespace: "ui"
}
});