aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ui/ui.draggable.js6
-rw-r--r--ui/ui.droppable.js7
2 files changed, 9 insertions, 4 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"
}
});
diff --git a/ui/ui.droppable.js b/ui/ui.droppable.js
index 4e77ecf67..c792e8e63 100644
--- a/ui/ui.droppable.js
+++ b/ui/ui.droppable.js
@@ -30,6 +30,8 @@ $.widget("ui.droppable", {
$.ui.ddmanager.droppables[this.options.scope] = $.ui.ddmanager.droppables[this.options.scope] || [];
$.ui.ddmanager.droppables[this.options.scope].push(this);
+ (this.options.cssNamespace && this.element.addClass(this.options.cssNamespace+"-droppable"));
+
},
plugins: {},
ui: function(c) {
@@ -118,7 +120,8 @@ $.extend($.ui.droppable, {
defaults: {
disabled: false,
tolerance: 'intersect',
- scope: 'default'
+ scope: 'default',
+ cssNamespace: 'ui'
}
});
@@ -169,7 +172,7 @@ $.ui.intersect = function(draggable, droppable, toleranceMode) {
*/
$.ui.ddmanager = {
current: null,
- droppables: { default: [] },
+ droppables: { 'default': [] },
prepareOffsets: function(t, e) {
var m = $.ui.ddmanager.droppables[t.options.scope];