Author: jmorliaguet
Date: Tue Apr  4 20:21:41 2006
New Revision: 2780

Modified:
   cpsskins/branches/jmo-perspectives/ui/framework/cpsskins.js
Log:

- fix when there's no drop zone



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 Tue Apr  4 
20:21:41 2006
@@ -907,12 +907,14 @@
     var y = Event.pointerY(e);
 
     var inTarget = false;
-    this._dropzones.each(function(d) {
-      if (Position.within(d, x, y)) {
-        inTarget = true;
-        this.target = d;
-      };
-    }.bind(this));
+    if (this.def.dropping) {
+      this._dropzones.each(function(d) {
+        if (Position.within(d, x, y)) {
+          inTarget = true;
+          this.target = d;
+        };
+      }.bind(this));
+    }
 
     var zoomback = this.def.dragging.zoomback;
     if (inTarget) {
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to