Author: jmorliaguet Date: Thu Mar 9 22:26:16 2006 New Revision: 2565 Modified: cpsskins/branches/jmo-perspectives/ui/framework/cpsskins.js Log:
- drag-and-drop: don't revert on a drop target Modified: cpsskins/branches/jmo-perspectives/ui/framework/cpsskins.js ============================================================================== --- cpsskins/branches/jmo-perspectives/ui/framework/cpsskins.js (original) +++ cpsskins/branches/jmo-perspectives/ui/framework/cpsskins.js Thu Mar 9 22:26:16 2006 @@ -676,8 +676,15 @@ if (Position.within(d, x, y)) { inTarget = true; } }); + var revert = this.def.revert; + if (inTarget) { + revert = false; + /* TODO: handle action */ + alert('NotImplemented'); + } + if (this.def.ghosting) { - if (this.def.revert) { + if (revert) { CPSSkins.Canvas.moveTo(this.moved, { 'x': this.x0, 'y': this.y0, @@ -688,9 +695,6 @@ this.moved.parentNode.removeChild(this.moved); } } - if (inTarget) { - /* TODO: handle action */ - } } }); -- http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins