From f2265bf9e6c2bde7402d5dfef1d1f223e9a4de2e Mon Sep 17 00:00:00 2001 From: Paul Bakaus Date: Mon, 28 Jul 2008 21:06:04 +0000 Subject: draggable,droppable: implemented cssNamespace option, if set to false/null, it won't add a class to the element --- ui/ui.draggable.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ui/ui.draggable.js') 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" } }); -- cgit v1.2.3