Show
Ignore:
Timestamp:
07/28/08 14:06:04 (20 months ago)
Author:
paul.bakaus
Message:

draggable,droppable: implemented cssNamespace option, if set to false/null, it won't add a class to the element

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/ui/ui.droppable.js

    r488 r489  
    3131                $.ui.ddmanager.droppables[this.options.scope].push(this); 
    3232                 
     33                (this.options.cssNamespace && this.element.addClass(this.options.cssNamespace+"-droppable")); 
     34                 
    3335        }, 
    3436        plugins: {}, 
     
    119121                disabled: false, 
    120122                tolerance: 'intersect', 
    121                 scope: 'default' 
     123                scope: 'default', 
     124                cssNamespace: 'ui' 
    122125        } 
    123126}); 
     
    170173$.ui.ddmanager = { 
    171174        current: null, 
    172         droppables: { default: [] }, 
     175        droppables: { 'default': [] }, 
    173176        prepareOffsets: function(t, e) { 
    174177