Author: jmorliaguet
Date: Mon Apr 10 15:31:28 2006
New Revision: 2806

Modified:
   cpsskins/branches/jmo-perspectives/ui/framework/cpsskins.js
   
cpsskins/branches/jmo-perspectives/ui/framework/tests/functional/cpsskins_dragdrop_test.html
Log:

- non-draggable elements must still be selectable



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 Mon Apr 10 
15:31:28 2006
@@ -695,7 +695,6 @@
     this.cancelEvent = new Function("return false");
 
     // cancel text selection
-    document.onmousedown = this.cancelEvent;
     document.onselectstart = this.cancelEvent;
 
     this._last_updated = 0;
@@ -778,11 +777,11 @@
   },
 
   dragEvent: function(e) {
-    if (!Event.isLeftClick(e)) return false;
     var draggable = this._findDraggable(e);
     if (!draggable) {
       return false;
     }
+    Event.stop(e);
 
     this.target = $(draggable);
     var pos = Position.cumulativeOffset(draggable);

Modified: 
cpsskins/branches/jmo-perspectives/ui/framework/tests/functional/cpsskins_dragdrop_test.html
==============================================================================
--- 
cpsskins/branches/jmo-perspectives/ui/framework/tests/functional/cpsskins_dragdrop_test.html
        (original)
+++ 
cpsskins/branches/jmo-perspectives/ui/framework/tests/functional/cpsskins_dragdrop_test.html
        Mon Apr 10 15:31:28 2006
@@ -250,6 +250,12 @@
     </tr>
   </table>
 
+  <form>
+    <p>
+      <input type="text" value="Change me" />
+    </p>
+  </form>
+
   <script type="text/javascript">
     function displayInfo(event) {
     }
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to