Changeset 689
- Timestamp:
- 09/18/08 02:51:50 (18 months ago)
- Location:
- trunk/ui
- Files:
-
- 2 modified
-
ui.draggable.js (modified) (1 diff)
-
ui.droppable.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ui/ui.draggable.js
r683 r689 310 310 var dropped = $.ui.ddmanager.drop(this, e); 311 311 312 if((this.options.revert == "invalid" && !dropped) || (this.options.revert == "valid" && dropped) || this.options.revert === true ) {312 if((this.options.revert == "invalid" && !dropped) || (this.options.revert == "valid" && dropped) || this.options.revert === true || ($.isFunction(this.options.revert) && this.options.revert.call(this.element, dropped))) { 313 313 var self = this; 314 314 $(this.helper).animate(this.originalPosition, parseInt(this.options.revertDuration, 10) || 500, function() { -
trunk/ui/ui.droppable.js
r678 r689 108 108 $.ui.plugin.call(this, 'drop', [e, this.ui(draggable)]); 109 109 this.element.triggerHandler("drop", [e, this.ui(draggable)], this.options.drop); 110 return t rue;110 return this.element; 111 111 } 112 112