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();
delay: 0,
distance: 1,
helper: "original",
- scope: "default"
+ scope: "default",
+ cssNamespace: "ui"
}
});
$.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) {
defaults: {
disabled: false,
tolerance: 'intersect',
- scope: 'default'
+ scope: 'default',
+ cssNamespace: 'ui'
}
});
*/
$.ui.ddmanager = {
current: null,
- droppables: { default: [] },
+ droppables: { 'default': [] },
prepareOffsets: function(t, e) {
var m = $.ui.ddmanager.droppables[t.options.scope];